Textdraw stats box. - 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 stats box. (
/showthread.php?tid=467361)
Textdraw stats box. -
CesarLT - 02.10.2013
Hello everyone, seems like my previous thread got deleted for an unknown reason..so anyways, I've a few questions about a textdraw, and how to create it.
So, here's an example of a textdraw I wish to create, but I don't know how to use variables inside of it.
Thanks in advance.
Re: Textdraw stats box. -
skaTim - 02.10.2013
This might help you
Re: Textdraw stats box. -
CesarLT - 02.10.2013
Quote:
Originally Posted by skaTim
|
Not really, as I already know how to create a basic textdraw, but using variables in it, and making it look like that, is my question..
Re: Textdraw stats box. -
newbie scripter - 03.10.2013
https://sampforum.blast.hk/showthread.php?tid=376758 iPLEOMAX's iTEXTDRAW See this thread and do it. You would need some extra scripting to be done.
Re: Textdraw stats box. -
Richie© - 03.10.2013
After you have created the textdraw, like with ipleomax td editor, format it and use PlayerTextDrawSetString
pawn Код:
format(str, sizeof(str), "Kills: %d~n~Deaths: %d", PlayerKills, PlayerDeaths); // Will create the text with Kills: XX and Deaths: XX on next line
PlayerTextDrawSetString(playerid, YourPlayerTextdraw[playerid], str);
Re: Textdraw stats box. -
Konstantinos - 03.10.2013
Quote:
Originally Posted by CesarLT
Not really, as I already know how to create a basic textdraw, but using variables in it, and making it look like that, is my question..
|
They ARE textdraws. The only thing changes is that the text can be changed with a function.
Also a tip: since it's for player's statistics - you should use per player textdraws.