23.03.2013, 19:53
So I'm trying to add a text draw for my two teams. It will show their current score. But when a person from the team kills a enemy, it doesn't update the score.
It's under OnGameModeInIt.
Thanks.
It's under OnGameModeInIt.
pawn Код:
// Team Score CT TD
new string[128];
format(string,sizeof(string), "CT Score: %d",tscore[gTeam[playerid]]);
TeamScoreCT = TextDrawCreate(28 ,286 , string);
TextDrawFont(TeamScoreCT, 1);
TextDrawLetterSize(TeamScoreCT, 0.5, 3.5);
TextDrawColor(TeamScoreCT, -1);
TextDrawSetOutline(TeamScoreCT, 0);
TextDrawSetProportional(TeamScoreCT , 1);
TextDrawSetShadow(TeamScoreCT, 1);
// Team Score TE TD
new tstring[128];
format(tstring,sizeof(tstring), "TE Score: %d",tscore[gTeam[playerid]]);
TeamScoreTE = TextDrawCreate(28 ,286 , tstring);
TextDrawFont(TeamScoreTE , 1);
TextDrawLetterSize(TeamScoreTE , 0.5, 3.5);
TextDrawColor(TeamScoreTE , -1);
TextDrawSetOutline(TeamScoreTE , false);
TextDrawSetProportional(TeamScoreTE , true);
TextDrawSetShadow(TeamScoreTE , 1);