21.05.2010, 21:36
I have a textdraw that is meant to be seen only when entered in a certain checkpoint.
Most of the time it works perfectly, but a lot of times players can see the textdraw when they die and respawn...why is that?
Here's my textdraw:
I have this:
On
Onplayerconnect
Onplayerspawn
Onplayerdeath
On my /kill command
and when a player leaves the checkpoint that shows the textdraw in the first place.
Even though i did all this, it still shows up a large percentage of the time randomly when i die, or spawn, etc
Most of the time it works perfectly, but a lot of times players can see the textdraw when they die and respawn...why is that?
Here's my textdraw:
Код:
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);
Код:
TextDrawHideForPlayer(playerid, Textdraw0);
Onplayerconnect
Onplayerspawn
Onplayerdeath
On my /kill command
and when a player leaves the checkpoint that shows the textdraw in the first place.
Even though i did all this, it still shows up a large percentage of the time randomly when i die, or spawn, etc