09.07.2011, 07:00
(
Последний раз редактировалось Kush; 09.07.2011 в 07:47.
)
You obviously aren't using it correctly.
First, paste this at the top of your script, below the includes.
Next, we're going to create a simple function.
Place this function, in your desired callback (ex. OnPlayerConnect)
If you would like the textdraw to be hidden or destroyed when the player spawns, add this:
First, paste this at the top of your script, below the includes.
pawn Код:
new Text:yourtext
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);
}
pawn Код:
OnPlayerConnect(playerid)
{
YourTextDraw(playerid);
}
pawn Код:
OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid,yourtext);
TextDrawDestroy(yourtext);
}