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=639519)
Textdraw Help -
Hiei - 19.08.2017
Hi All, Like the title, in the login, i want to show textdraw for player
After Login, i want this textdraw disappear
how to do it ?
Re: Textdraw Help -
Ultraz - 19.08.2017
If you want it to disappear after spawning, you will use this for example.
This is under OnGameModeInit:
Code:
TDGame[5] = TextDrawCreate(3.200013, 282.986724, "~w~your:~p~ text~w~~n~draw: here~n~for~n~example"); //Your textdraw here.
Then this under OnPlayerSpawn:
Code:
TextDrawHideForPlayer(playerid,TDGame[5]); //TDGame[5] is the name i choosed, it's just for example.
Then it'll be hidden after player spawn, +rep if i helped you.
Ultraz.
Re: Textdraw Help -
Ghazal - 19.08.2017
Quote:
Originally Posted by Ultraz
If you want it to disappear after spawning, you will use this for example.
This is under OnGameModeInit:
Code:
TDGame[5] = TextDrawCreate(3.200013, 282.986724, "~w~your:~p~ text~w~~n~draw: here~n~for~n~example"); //Your textdraw here.
Then this under OnPlayerSpawn:
Code:
TextDrawHideForPlayer(playerid,TDGame[5]); //TDGame[5] is the name i choosed, it's just for example.
Then it'll be hidden after player spawn, +rep if i helped you.
Ultraz.
|
Why are you using TDGame[5]? He only requested one textdraw, not 6. And, TextDrawCreate creates the textdraw, not show it.
OT: You can try using
TDEditor to make your textdraw and then paste the textdraw creation codes under OnGameModeInit and simply add this under your login system in case it is a global textdraw
pawn Code:
TextDrawShowForPlayer(playerid, YourTextDrawName);
And add:
pawn Code:
TextDrawHideForPlayer(playerid, YourTextDrawName);
under OnPlayerSpawn to hide the textdraw.
Re: Textdraw Help -
Hiei - 19.08.2017
NAH, Let's me test two ways
Re: Textdraw Help -
Hiei - 19.08.2017
Sucsess

Thanks