Textdraw Help
#1

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 ?
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by Ultraz
View Post
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.
Reply
#4

NAH, Let's me test two ways
Reply
#5

Sucsess Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)