SA-MP Forums Archive
textdraw help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: textdraw help (/showthread.php?tid=466567)



textdraw help - newbie scripter - 28.09.2013

i need help with textdraw . in one of my topic (idk whether its removed)
i asked a way for shpwing the |muscle + | thingy which is in singleplay and sm1 told about textdraw.
i made something same like it but idk how to show it when player improves his muscle (im not making about muscle) instead of muscle change it to XP.

if player gets XP + 5 or above i want the Textdraw to be shown and add a bit witdh to it i will add images of my TD and the Code (ty ipleomax for iTD)

IMAGE:

pawn Код:
// nvm my name (i use different usernames) :P
%i for how much xp the player has

pawn Код:
//Player Textdraws:

new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
new PlayerText:Textdraw2[MAX_PLAYERS];


Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 193.250000, 240.666702, "robbery level");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.200000, 1.000000);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 20.500000, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], -1);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 24.375000, 240.333328, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw1[playerid], 8.750000, 18.666671);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], -2147483393);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 4);

Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 35.625000, 242.083358, "%i");
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.139999, 1.372498);
PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);


DON'T COPY MY IDEA [-_-]



Re: textdraw help - -Prodigy- - 28.09.2013

1st of all, this idea has existed for a while now. So nigga plz

Also, the best(and easiest) way you can create this system is to use Progress bar include, found here in the forums.


Re: textdraw help - newbie scripter - 28.09.2013

I tried it but i got error


Re: textdraw help - -Prodigy- - 28.09.2013

Show me what you made then.


Re: textdraw help - newbie scripter - 28.09.2013

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
Show me what you made then.
See the Image Up or what u awnt


Re: textdraw help - newbie scripter - 29.09.2013

plz help


Re: textdraw help - xganyx - 29.09.2013

Use
pawn Код:
TextDrawSetString(Text:text, string[])