11.06.2011, 06:57
Hi all,i've coded a textdraw to show global kills of a team. (In this case usa).
I do it in this way:
OnPlayerConnect
OnPlayerDeath
The textdraw shows but the counter of kills doesn't increase.What's wrong?
I do it in this way:
pawn Код:
new UsaKills;
pawn Код:
new ukills[128];
format(ukills, sizeof(ukills), "Usa Kills: %d", UsaKills);
TextDrawSetString(UKD, ukills);
TextDrawShowForAll(UKD);
pawn Код:
if ( killerid == TEAM_USA )
{
UsaKills += 1 ;
}