09.05.2010, 14:42
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:
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);
}