put this into your server.cfg or gamemode_*_server.cfg
and see if it fixes your problem
or just set the score on round start :p
Well, I can set scores at the round start, it will also work as intended (lets say my cvar is 5 for both, and CT will win a round, then it is 6-5 CT side), HOWEVER when I try to call CS_GetTeamScore in event_roundend, it will always return true values (example 1-0 for CT instead of 6-5), is there a way how to fix it?
Spoiler
PHP Code:
int skorect = CS_GetTeamScore(CS_TEAM_CT); int skoret = CS_GetTeamScore(CS_TEAM_T); if(skorect>skoret) { PrintToChat(client, "[Pug] CTs are winning %i-%i", skorect, skoret); } else if(skorect<skoret) { PrintToChat(client, "[Pug] Ts are winning %i-%i", skoret, skorect); } else if(skorect==skoret) { PrintToChat(client, "[Pug] Scores are tied %i-%i", skorect, skoret); }
**don't judge if my coding is awful, I am not really a programmer at all, just want this to work