[HELP] How to get like this in my server??
#6

Quote:
Originally Posted by Xtreme-Nicole
Посмотреть сообщение
I have do what i need to do but i get :
You obviously aren't using it correctly.

First, paste this at the top of your script, below the includes.

pawn Код:
new Text:yourtext
Next, we're going to create a simple function.

pawn Код:
YourTextDraw(playerid)
{
   yourtext = TextDrawCreate(0.0,0.0,"Place what you want in here."); //Remember to change the values of the floats.
   TextDrawShowForPlayer(playerid,yourtext);
}
Place this function, in your desired callback (ex. OnPlayerConnect)

pawn Код:
OnPlayerConnect(playerid)
{
   YourTextDraw(playerid);
}
If you would like the textdraw to be hidden or destroyed when the player spawns, add this:

pawn Код:
OnPlayerSpawn(playerid)
{
   TextDrawHideForPlayer(playerid,yourtext);
   TextDrawDestroy(yourtext);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)