复制程式
#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;
}