SA-MP Forums Archive
How to make teleport or something like that? - 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: How to make teleport or something like that? (/showthread.php?tid=545254)



How to make teleport or something like that? - Bek_Loking - 07.11.2014

I want to make teleport from a place to place, I've already got pickups, the place I want to teleport to, and to get teleported to. I just need help on how to do it.. Giving rep + to the dude that helps me


Re: How to make teleport or something like that? - ItzRbj - 07.11.2014

can u show the pickup id and the place's Floats ? , i think i know how


Re: How to make teleport or something like that? - HY - 07.11.2014

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == *YourPickUpName*) // Your pickup name . P.S: Remove "*"
    {
        SetPlayerPos(playerid, X,Y,Z); // Replace X,Y,Z with your coordinates.
    }
    return 1;
}