|
能不能去掉处死后加减1人数
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init(){
register_plugin("AMX Slay Losers","1.76c","Dt_C.H.M")
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_cvar("mp_slaylosers","1",FCVAR_SERVER)
return PLUGIN_CONTINUE
}
public end_round(){
if( get_cvar_num("mp_slaylosers") == 1){
new parm[32]
read_data(2,parm,31)
set_task(1.0,"slay_those_losers",15120,parm, 31)
}
return PLUGIN_CONTINUE
}
public slay_those_losers(parm[]) {
new player[32], playersnum
get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" )
for(new i = 1; i < playersnum; ++i){
user_kill(player )
client_cmd(0,"spk misc/famas-burst.wav")
}
}
public plugin_precache(){
precache_sound( "misc/famas-burst.wav")
return PLUGIN_CONTINUE
} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|