#include <amxmodx>
enum _teams {
_terro,
_ct
}
new g_iScore[_teams]
public plugin_init()
{
register_event("TeamScore", "Event_TeamScore", "a")
register_clcmd("say !s", "SayScore")
register_clcmd("say_team !s", "SayScore")
}
public Event_TeamScore()
{
new szTeamName[2]
read_data(1, szTeamName, 1)
g_iScore[szTeamName[0] == 'T' ? _terro : _ct] = read_data(2)
}
public SayScore(id)
{
client_print(0,print_chat, "Score : T's %d - %d CT's", g_iScore[_terro], g_iScore[_ct])
return PLUGIN_HANDLED
}