打开plugin_blatt_monster.sma,找到admin_spawn()函数,把其中的
else
{
new player,pName[32]
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[32]
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)
}
重新编译试一试! |