SA-MP Forums Archive
question - 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: question (/showthread.php?tid=394903)



question - Mustafa6155 - 24.11.2012

Is this possible
How to make an Checkpoint you go in there and go to bank etc.
but in Sf i got too bank how to do he entered te pos i go old pos not in SF
is that possible?


Re: question - RenSoprano - 24.11.2012

Yes,

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;
}