Code:
#include <amxmodx>
#include <amxmisc>
#define Plugin "Team Score"
#define Version "1.0"
#define Author "Doombringer"
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] == 'C')
team_wins[0] = read_data(2)
else if(team[0] == 'T')
team_wins[1] = read_data(2)
return PLUGIN_CONTINUE
}
public new_round()
{
set_hudmessage(255, 255, 255, 0.01, 0.18, 0, 6.0, 6.0)
show_hudmessage(0, "CT %d / TS %d", team_wins[0], team_wins[1])
}
I got this plugin. How can i make total rounds to 6 then do something? Like when 6 total rounds have been played?