複製程式
#include <amxmodx>
#include <fakemeta>
public plugin_init() {
register_plugin("0.0","0.0","0.0")
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink", 1)
}
public fw_PlayerPreThink(id)
{
new players_ct[32], players_t[32], ict, ite
get_players(players_ct,ict,"ae","CT")
get_players(players_t,ite,"ae","TERRORIST")
set_hudmessage(255, 170, 255, 0.04, 0.64, 0, 6.0, 0.1)
show_hudmessage(id, "剩餘 %s 個CT 和 %s 個T", ict, ite)
return FMRES_IGNORED;
}