TextDraw Help
#1

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.. !!
Reply
#2

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);
Reply
#3

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
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)