29.03.2017, 17:12
PHP код:
new Text:KillsTextdraw[MAX_PLAYERS];//Junto com аs suas NEWS
//Pхem junto com as textdraws em OnGamemodeInit
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
new kills[128];
format(kills, sizeof(kills), "~g~Kills: ~w~%d ", Player[playerid][pMatou]);//Aqui defina com sua variбvel.
KillsTextdraw[playerid] = TextDrawCreate(497.000000, 120.000000, "~g~K: ~w~120");
TextDrawBackgroundColor(KillsTextdraw[playerid], 255);
TextDrawFont(KillsTextdraw[playerid], 2);
TextDrawLetterSize(KillsTextdraw[playerid], 0.209998, 1.100000);
TextDrawColor(KillsTextdraw[playerid], -1);
TextDrawSetOutline(KillsTextdraw[playerid], 0);
TextDrawSetProportional(KillsTextdraw[playerid], 1);
TextDrawSetShadow(KillsTextdraw[playerid], 1);
TextDrawSetSelectable(KillsTextdraw[playerid], 0);
}
TextDrawShowForPlayer(playerid, KillsTextdraw[playerid]);//Pхem em OnplayerSpawn