24.07.2015, 02:14
Quote:
I am wondering, which new Textdraw ?
You got some textdraw and than you just use TextDrawSetString to overwrite the existing text Also any event related thing should be put where the event is handled => If someone gets a kill it should be OnPlayerDeath, after you increase the kill counter check for the new highest killer |
Код:
new Text:messagetextdraw; new topkillermessage[256]; new highestkillerid = GetHighestKiller(); GetPlayerName(highestkillerid, playername, sizeof(playername)); format(topkillermessage, sizeof(topkillermessage), "%s has the most amount of kills.", playername); TextDrawSetString(messagetextdraw,topkillermessage); TextDrawShowForPlayer(playerid, messagetextdraw);