28.02.2017, 16:54
Maybe this is what you want. First of all make some CMD like eh... /job like this one :
Then if player enter checkpoint at the coordinate, disable the checkpoint like this :
PHP код:
CMD:job(playerid, params[])
{
SetPVarInt(playerid, "Checkpoint", 1);
SetPlayerCheckpoint(playerid, 2066.1118,-1991.9330,13.5469, 3.0);
}
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetPVarInt(playerid, "Checkpoint"))
{
//Add another function if you want
DisablePlayerCheckpoint(playerid);
DeletePVar(playerid, "Checkpoint");
}
return 1;
}