|
发表于 2008-7-4 12:45:07
|
显示全部楼层
|阅读模式
来自 中国–广西–百色–田东县
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
public plugin_init(){
register_plugin("shaokill","2.0","AMI")
register_logevent("newRound", 2, "0=World triggered", "1=Round_Start")
return PLUGIN_CONTINUE
}
public newRound(){
set_task( 1.0 , "roundshaokill")
}
public roundshaokill(){
new players[32],num
get_players( players, num)
for (new i = 0; i < num; i++){
new player = players
if( get_user_frags(player) - get_user_deaths(player) <= -7 )
server_cmd("kick #%d^"你必须努力杀敌才不被踢出^"", get_user_userid(player));
}
return PLUGIN_CONTINUE
} |
|