10.12.2010, 13:11
hi,
can someone help me pls?
i want that the kills a player has are displayed with this textdraw.
But the number doesnt change.
can someone help me pls?
pawn Код:
new Text:killtext;
//OnGameModeInit
killtext = TextDrawCreate(518.000000, 134.000000, "Kills: 0");
TextDrawBackgroundColor(killtext, 255);
TextDrawFont(killtext, 1);
TextDrawLetterSize(killtext, 0.500000, 1.000000);
TextDrawColor(killtext, -65281);
TextDrawSetOutline(killtext, 1);
TextDrawSetProportional(killtext, 1);
//dont know where to set it
new newtext[41];
format(newtext, sizeof(newtext), "Kills: %s", kills[killerid]);
TextDrawSetString(killtext, newtext);
//OnPlayerDeath
deaths[playerid]++;
if(killerid!=INVALID_PLAYER_ID) {
kills[killerid]++; }
But the number doesnt change.