Hi, I used the following method to set team scores on the scoreboard.
It works fine, but as the new round starts, the team scores set back according to the original values which they previously had. They do not continue according to the new values provided.
Code:
public plugin_init()
{
.......
gTeamScore = get_user_msgid("TeamScore")
}
public changescores()
{
message_begin(MSG_ALL,gTeamScore)
write_string("TERRORIST")
write_short(g_tscore)
message_end()
message_begin(MSG_ALL,gTeamScore)
write_string("CT")
write_short(g_ctscore)
message_end()
}
How can I keep the new scores saved?