Hello,
I Searched For An Hour But I Don't Find How To Fix It.
This Team Score Plugin on De_dust2 Map Count Only Counter-Terrorist's Score, on Cs_assault Map Count Only Terrorist's Score.
I Don't Know What To Do , Plz Help Me
Code:
new team_wins[2]
public plugin_init()
{
register_plugin(Plugin, Version, Author)
register_event("TeamScore", "team_score", "a")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public team_score()
{
new team[2]
read_data(1, team, 1)
if(team[0] == 2)
team_wins[0] = read_data(2)
else if(team[0] == 1)
team_wins[1] = read_data(2)
return PLUGIN_CONTINUE
}
public new_round()
{
set_hudmessage(255, 255, 255, 0.01, 0.18, 0, 6.0, 12.0)
show_hudmessage(0, "CT %d / TS %d", team_wins[0], team_wins[1])
client_print(0, print_chat,"C %d | %d T", team_wins[0], team_wins[1])
}
EDIT: I Just Need To Count Both Team Score Like There. Score_T For Terrorist Score And Score_CT For Counter-Terrorist Score.