Help With Textdraw
#2

You can have all these functions in 1 textdraw.

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);
That's what I did when I faced a similar problem.
Reply


Messages In This Thread
Help With Textdraw - by Speaker - 23.02.2017, 04:37
Re: Help With Textdraw - by Toroi - 25.02.2017, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)