SA-MP Forums Archive
How to make a teleport - 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 a teleport (/showthread.php?tid=294797)



How to make a teleport - sk1ll3r - 03.11.2011

Hello. I am a scripting beginner and i want to make teleports. And then i want to make teleport commands like /sfa,/lva and /lsa. Can anyone help me?


Re: How to make a teleport - [Headless] - 03.11.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/myteleport") == 0)
     {
         SetPlayerPos(playerid, -1967.8365, 2956.9823, 12.9375); // go to your GTA san andreas folder and run samp_debug and go to the place you want and /save it and change the coordinates
         return 1;
     }
     return 0;
}
https://sampwiki.blast.hk/wiki/Creating_Commands


Re: How to make a teleport - sk1ll3r - 03.11.2011

Thanks.