How to make an Checkpoint you go in there and go to bank etc.
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,6.0,X,Y,Z) // This checkpoint will teleport the player to the bank
{
SetPlayerPos(playerid, X, Y,Z); // Replace X, y, z with your cordinates where you want player to be teleported
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,6.0,X,Y,Z) // This checkpoint will send him back
{
SetPlayerPos(playerid, X, Y,Z); // Replace X, y, z with your cordinates where you want player to be teleported
return 1;
}
return 1;
}