With this Code. (the round is not begun again with the 'sv_restart')
PHP Code:
new g_iScore[2]
new g_iLastTeamScore[2]
public Event_TeamScore()
{
new szTeamName[2]
read_data(1, szTeamName, 1)
new iTeam = (szTeamName[0] == 'T') ? 0 : 1
new iScore = read_data(2)
new iScoreOffset = iScore - g_iLastTeamScore[iTeam]
if(iScoreOffset > 0)
{
g_iScore[iTeam] += iScoreOffset
}
g_iLastTeamScore[iTeam] = iScore
}
public ClientCommand_SayScore(id)
{
client_print(0,print_chat, "Score : T's %d - %d CT's", g_iScore[0], g_iLastTeamScore[1])
return PLUGIN_HANDLED
}
Hello, I would like to know if it is possible to add this idea:
Example: (Not to overcome the 15 of score between if)
* Score: 02 T - 05 CT -----> sv_restart ----> it returns to "0"
* Score: 03 T - 08 CT -----> sv_restart ----> it returns to "0"
Example: (to overcome the 15 of score between if)
* Score: 10 T - 08 CT -----> sv_restart ----> it returns to score with which I go over to 15 rounds
* Score: 06 T - 14 CT -----> sv_restart ----> it returns to score with which I go over to 15 rounds
Code:
Thanks to that they always help. Greetings.