版主能不能帮我改个源码?附源码
能不能去掉处死后加减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
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, playersnum
get_players(player,playersnum,"ea",(parm == '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
}
回复: 版主能不能帮我改个源码?附源码
Post by rgm4能不能去掉处死后加减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","...
user_kill(player )改成user_kill(player ,1)
回复: 版主能不能帮我改个源码?附源码
谢谢了,Cr@zyTreE大哥
页:
[1]