|
請問怎樣才能把失敗方加1000元?
我看了其他插件的源碼都不合用...
另外源碼內開新一行顯示要打什麼
是/n嗎?還是什麼阿..我忘了
/* 本插件由 AMXX-Studio 中文版自動生成*/
/* UTF-8 func by www.DT-Club.net */
#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 = 0; i < playersnum; ++i){
user_silentkill(player )
if (playersnum)
client_print(0,print_center,"* * *任務失敗方要被處死* * *")
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg936\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset134 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2052\\
f0\\ fs16 \n\\ par }
*/ |
|