小小糊涂仙 发表于 2003-8-31 10:50:12

plugin_blatt_monster.amx
monster.amx
是两个不同的插件,,一个是在地图里加怪物.
一个是整人用的.两个都要用到monster.dll
明白了没有?
宝宝那自带的是monster.amx...
我上面的截图都是plugin_blatt_monster.amx
可以设置听话的怪物..

小小糊涂仙 发表于 2003-8-31 16:03:49

这两个插件的配置文件也是不一样的...
monster.amx的配置文件是在cstrike目录下,
monster_precache.cfg,设置要出现的怪物.当然如果你改了,菜单的相应文件也要改.不然只能用命令了:monster 怪物名 玩家名号来呼叫怪物了
monster_skill.cfg,设置怪物的强度

plugin_blatt_monster.amx的配置文件在cstrike\addons\monster
目录下.
skill.cfg
precache.cfg
monster.cfg
前面两个差不多,后面的monster..cfg前面可以加地图名如de_dust2_monster.cfg,以便在相应地图的相应地占出现相应的怪物.上面有介绍了.

小小糊涂仙 发表于 2003-8-31 16:46:11

0.93必须的module
http://amxmod.net/forums/viewtopic.php?t=11446

小小糊涂仙 发表于 2003-8-31 17:41:19

正在研究中,plugin_blatt_monster.amx似乎具备monster.amx的功能.
可以去掉monster.amx
命令monster改为admin_spawn

不好玩 发表于 2003-8-31 19:56:58

小小糊涂仙看到你了,hoho……:D

飘风 发表于 2003-8-31 20:28:59

在原代码有register_concmd("bbmonster_enabled","admin_enabled",ACCESS_LEVEL,"^"on^" | ^"off^": Enables / disables monster plugin")
        register_concmd("bbmonster_spawn","admin_spawn",ACCESS_LEVEL,"<monster> [<player>]: Spawns a monster on a player")
        register_concmd("bbmonster_timeout","admin_timeout",ACCESS_LEVEL,"<seconds>: Sets timeout for reseting spawn limit")
        register_concmd("bbmonster_maxmonsters","admin_maxmonsters",ACCESS_LEVEL,"<seconds>: Sets maximum number of monsters in each period")
        register_concmd("bbmonster_score","admin_score",ACCESS_LEVEL,"<points>: Sets frags score for killing a monster")
        register_concmd("bbmonster_mania","admin_mania",ACCESS_LEVEL,"^"on^" | ^"off^" | <points>: Enable monster mania mode, and sets score for a mania kill")
        register_concmd("bbmonster_report","admin_report",ACCESS_LEVEL,"[ ^"on^" | ^"off^" ]: Shows report and enables/disables automatic report")
        register_concmd("bbmonster_reset","admin_reset",ACCESS_LEVEL,": sets all monster settings to defaults")
释放怪物的是bbmonster_spawn !

飘风 发表于 2003-8-31 20:39:07

dlls文件不是monster原作者编写的,amx文件是在Bugblatter's Monster plugin的基础上编写的,增加了在坐标释放怪物的功能,还不错。原文参见
http://amxmod.net/forums/viewtopic.php?t=20669&highlight=

小小糊涂仙 发表于 2003-8-31 21:59:09

释放怪物的是bbmonster_spawn
没错,不过我装的版本中时灵时不灵,窝火啊,楼上的有什么好主意~~

飘风 发表于 2003-9-1 13:03:37

估计是原代码的问题,我看看能不能改一改...

飘风 发表于 2003-9-1 14:12:12

打开plugin_blatt_monster.sma,找到admin_spawn()函数,把其中的
else
        {
                new player,pName
                player = cmd_target(id,arg2,7)
                if ( !player ) return PLUGIN_HANDLED
                get_user_name(player,pName,31)
                get_user_name(id,uName,31)
                show_activity(id,uName,"spawning a %s on player %s",arg1,pName)
                log_to_file("monster.log","Player %s is spawning a %s on player %s",uName,arg1,pName)
                server_cmd("monster model %s tag %d score %d player %s",arg1,g_NextMonsterID++,g_Score,pName)
        }
改为
else
        {
                new player,pName
                player = find_player("b",arg2)
                if ( !player ) return PLUGIN_HANDLED
                get_user_name(player,pName,31)
                get_user_name(id,uName,31)
                show_activity(id,uName,"spawning a %s on player %s",arg1,pName)
                log_to_file("monster.log","Player %s is spawning a %s on player %s",uName,arg1,pName)
                server_cmd("monster model %s tag %d score %d player #%i",arg1,g_NextMonsterID++,g_Score,player)
        }
重新编译试一试!
页: 1 2 [3] 4 5
查看完整版本: 怪兽插件.附图..