Please Help Me Creating Checkpoints - 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)
+--- Thread: Please Help Me Creating Checkpoints (
/showthread.php?tid=528666)
Please Help Me Creating Checkpoints -
rashidkhoso37 - 29.07.2014
Hi friends please help me to creating checkpoints when player go to checkpoint it show a dialog with options reload weapons_ Reset Health and Armour when we choose a option it give players to weapon or health i want to add this checkpoint for my cops and robbers server plzzz help me
Re: Please Help Me Creating Checkpoints -
Clad - 29.07.2014
First of all you must create the checkpoint for the player, Use this.
pawn Код:
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
// 3.0 is the size, You can create unvisible Checkpoint by setting the size to 0.0
Now, Use this.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z))
{
ShowPlayerDialog // ect
}
The coordinates X,Y,Z must be changed to your coordinates.