03.04.2011, 22:34
Here you go man.
http://pastebin.com/NrUf18RD
I got rid of the timers because there is no need. It's a lot more efficient to just update the scores under OnPlayerDeath since that is the only time when they would change. I also fixed a few logic errors such as this one:
Because killerid is the id of the player who killed the other player. So you don't need to see if his id matches TEAM_NBG but if his gTeam variable matches it. And the reason the textdraws weren't updating is because you were formating them with %s which means string. You needed to be using %d for integer. Compiled fine and should be ready go now. Have fun.
http://pastebin.com/NrUf18RD
I got rid of the timers because there is no need. It's a lot more efficient to just update the scores under OnPlayerDeath since that is the only time when they would change. I also fixed a few logic errors such as this one:
pawn Code:
if ( killerid == TEAM_NBG )
//Should be
if ( gTeam[killerid] == TEAM_NBG )