07.08.2012, 17:09
Hi all i'm working on a kill counter to show each team kills ,i have 2 teams, i use this :
OnGamemodeInit
OnPlayerConnect
OnPlayerDeath
So the problem is that it doesn't work for the ballas ,and it works perfectly for the grove and i don't know what's the problem ,Please help
Code:
#define TEAM_GROVE 0 #define TEAM_BALLA 1 new Text:Textdraw0; new TeamDeaths[2];
Code:
Textdraw0 = blablabla..... TeamDeaths[0]=0, TeamDeaths[1]=0;
Code:
TextDrawShowForPlayer(playerid, Textdraw0);
Code:
TeamDeaths[GetPlayerTeam(playerid)]++; new str[128]; format(str, 128, "Grove: %d Ballas: %d", TeamDeaths[0], TeamDeaths[1]); TextDrawSetString(Textdraw0, str);