Gangzone with Textdraw ?
#2

Add this at the top of the script :
pawn Код:
new Text:Textdraw0
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
Reply


Messages In This Thread
Gangzone with Textdraw ? - by Camorra - 02.11.2012, 22:44
Re: Gangzone with Textdraw ? - by Private200 - 02.11.2012, 22:55
Re: Gangzone with Textdraw ? - by Camorra - 02.11.2012, 23:24
Re: Gangzone with Textdraw ? - by JaKe Elite - 03.11.2012, 08:04
Re: Gangzone with Textdraw ? - by JaKe Elite - 03.11.2012, 08:31
Re: Gangzone with Textdraw ? - by Camorra - 04.11.2012, 15:04
Re: Gangzone with Textdraw ? - by [KHK]Khalid - 04.11.2012, 15:37
Re: Gangzone with Textdraw ? - by Camorra - 04.11.2012, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)