SA-MP Forums Archive
TextDraw Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw Help (/showthread.php?tid=361831)



TextDraw Help - Pokiri_Boii - 22.07.2012

Hey Guys,

I have created a textdraw and here it is

pawn Код:
//===============================Gamemode Start=================================
public OnGameModeInit()
{
//------------------------------------Welcome : Textdraw -----------------------
new Text:Textdraw1;

// In OnGameModeInit
Textdraw1 = TextDrawCreate(436 ,363 , "Crazy World");
TextDrawFont(Textdraw1 , 3);
TextDrawLetterSize(Textdraw1 , 1, 7);
TextDrawColor(Textdraw1 , 0xff00bbFF);
TextDrawSetOutline(Textdraw1 , false);
TextDrawSetProportional(Textdraw1 , true);
I checkd in the server and the textdraw isn't there.. !!

I wanted this textdraw full time in the server without going.. !!


Thanks in Advance,
I haven't left anyone without reputing him if he had helped me.. !!


Re: TextDraw Help - [MM]RoXoR[FS] - 22.07.2012

pawn Код:
// In OnGameModeInit
Textdraw1 = TextDrawCreate(436 ,363 , "Crazy World");
TextDrawFont(Textdraw1 , 3);
TextDrawLetterSize(Textdraw1 , 1, 7);
TextDrawColor(Textdraw1 , 0xff00bbFF);
TextDrawSetOutline(Textdraw1 , false);
TextDrawSetProportional(Textdraw1 , true);

//You need this :>
TextDrawShowForAll(Textdraw1);



Re: TextDraw Help - M3mPHi$_S3 - 22.07.2012

Use this codes .
pawn Код:
public OnGameModeInit()
{
//------------------------------------Welcome : Textdraw -----------------------
new Text:Textdraw1;

// In OnGameModeInit
Textdraw1 = TextDrawCreate(436 ,363 , "Crazy World");
TextDrawFont(Textdraw1 , 3);
TextDrawLetterSize(Textdraw1 , 1, 7);
TextDrawColor(Textdraw1 , 0xff00bbFF);
TextDrawSetOutline(Textdraw1 , false);
TextDrawSetProportional(Textdraw1 , true);

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw1); // ---> to show the textdraw when a player connect :
 
    return 1;
}
EDIT : he already have did that.
Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
pawn Код:
new Text:Textdraw1;
make it global(on the top of the script, out of the OnGameModeInit())r



Re: TextDraw Help - Roko_foko - 22.07.2012

pawn Код:
new Text:Textdraw1;
make it global(on the top of the script, out of the OnGameModeInit())
OnPlayerConnect -> ShowTextDrawForPlayer


Re: TextDraw Help - Pokiri_Boii - 22.07.2012

Topic is over.. !! Thanks Fo the Help !!