25.02.2017, 11:57
You can have all these functions in 1 textdraw.
That's what I did when I faced a similar problem.
pawn Код:
At Top
new Text:sstats;
ongamemodinit
sstats = TextDrawCreate(152.800018, 344.213348, "~y~SCORE:~n~KILLS:~n~DEATHS:~n~RANK:~n~TEAM:");
TextDrawLetterSize(sstats, 0.244399, 1.749332);
TextDrawAlignment(sstats, 1);
TextDrawColor(sstats, -1);
TextDrawSetShadow(sstats, 0);
TextDrawSetOutline(sstats, 1);
TextDrawBackgroundColor(sstats, 51);
TextDrawFont(sstats, 2);
TextDrawSetProportional(sstats, 1);
On player spawn
new str1[128];
format(str1, sizeof(str1),"~y~SCORE: ~w~%d~n~~y~KILLS: ~w~%d~n~~y~DEATHS: ~w~%d~n~~y~RANK: ~w~%s~n~~y~TEAM: ~w~%s",GetPlayerScore(playerid),PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],GetRankName(playerid),GetTeamName(playerid));
TextDrawSetString(sstats, str1);
TextDrawShowForPlayer(playerid, sstats);