Add this at the top of the script :
Now the code to create the textdraw
pawn Код:
Textdraw0 = TextDrawCreate(795.140000, 0.000000, "The name of the base here"); //I am not sure about the position of the textdraw
TextDrawBackgroundColor(Textdraw0, 16711935);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.570000, 2.700000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Something like full script of it , without the things in the top of your script !
pawn Код:
else if(IsPlayerInTurf(playerid,1843.0125, 2474.0095, 2235.0125, 2544.0095))// 34
{
Textdraw0 = TextDrawCreate(795.140000, 0.000000, "The name of the base here"); //I am not sure about the position of the textdraw
TextDrawBackgroundColor(Textdraw0, 16711935);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.570000, 2.700000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
return 1;
}
Ahh yeah , i forgot about showing it too :P
Here code is . You put it under OnPlayerSpawn
pawn Код:
public OnPlayerSpawn( playerid )
{
TextDrawShowForPlayer( playerid, Textdraw0 );
return 1;
}
If you don't have a OnPlayerSpawn , you copy it just like that , if you alredy got one just copy the
pawn Код:
TextDrawShowForPlayer( playerid, Textdraw0 );
line and paste it under OnPlayerSpawn
Hope this helps