21.05.2010, 23:09
This is how i added it for my checkpoint.
And for onplayerleavecheckpoint its
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) { 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); if (gCheckpoint[18] == checkpointid) { TextDrawShowForPlayer(playerid, Textdraw0); } return 1; }
Код:
else if (gCheckpoint[18] == checkpointid) { TextDrawHideForPlayer(playerid, Textdraw0); }