Textdraw issues
#1

I have a textdraw that i want to work as i enter a checkpoint.


The problem i'm having is the textdraw shows all the time. As soon as i connect to the server it shows...


Heres my code:


pawn Код:
//ongamemodeinit
TextDrawHideForAll(Textdraw0);
Textdraw0 = TextDrawCreate(351.000000, 198.000000, "/buyheal - To Heal Yourself ($1000) /Buycure - To Cure Yourself ($4500) /healall - To heal/Cure Yourself ($5000)");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.360000, 1.500000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 644.000000, 1377.000000);

pawn Код:
//When they enter the checkpoint
else if (gCheckpoint[18] == checkpointid) {
     TextDrawShowForPlayer(playerid, Textdraw0);
  }
pawn Код:
//when they leave the checkpoint
    else if (gCheckpoint[18] == checkpointid) {
    TextDrawHideForPlayer(playerid, Textdraw0);
    }
Reply
#2

Код:
//When they enter the checkpoint
else if (gCheckpoint[18] == checkpointid) {
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawHideForAll(Textdraw0);
Textdraw0 = TextDrawCreate(351.000000, 198.000000, "/buyheal - To Heal Yourself ($1000) /Buycure - To Cure Yourself ($4500) /healall - To heal/Cure Yourself ($5000)");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.360000, 1.500000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 644.000000, 1377.000000);
  }
(i think)

Same As TextDrawHide
Reply
#3

Quote:

As soon as i connect to the server it shows

Did you maybe puted those textdraws to
pawn Код:
OnPlayerConnect or OnPlayerSpawn
If you did remove it and put it on
pawn Код:
OnPlayerEnterCheckpoint
Reply
#4

Quote:
Originally Posted by BigM
Quote:

As soon as i connect to the server it shows

Did you maybe puted those textdraws to
pawn Код:
OnPlayerConnect or OnPlayerSpawn
If you did remove it and put it on
pawn Код:
OnPlayerEnterCheckpoint
Thank you
Reply
#5

Quote:

Thank you

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)