How to make a teleport
#1

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?
Reply
#2

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
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)