Posts: 41
Threads: 11
Joined: Jul 2014
Reputation:
0
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
Posts: 1,241
Threads: 67
Joined: Dec 2013
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.