SA-MP Forums Archive
Textdraw issues - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw issues (/showthread.php?tid=146874)



Textdraw issues - MWF2 - 09.05.2010

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);
    }



Re: Textdraw issues - luckie12 - 09.05.2010

Код:
//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


Re: Textdraw issues - BigM - 09.05.2010

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



Re: Textdraw issues - MWF2 - 09.05.2010

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


Re: Textdraw issues - BigM - 09.05.2010

Quote:

Thank you

No problem