SA-MP Forums Archive
Teleport X Y Z - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Teleport X Y Z (/showthread.php?tid=461059)



Teleport X Y Z - roncohen - 31.08.2013

Hello everyone,
I need support how to teleport X Y Z,
I don't know how to teleport or know what my X Y Z.
I have a RolePlay Server, And I have problem with National Guard lockers
and Senate Lockers (GOV Lockers).
I need your help please.

Skype:
ron7897

Contact me on skype if you can help.


Re: Teleport X Y Z - Admin22 - 31.08.2013

Like this?
pawn Код:
CMD:gotocoord(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        new Float: pos[3], int;
        if(sscanf(params, "fffd", pos[0], pos[1], pos[2], int)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /gotocoord [x coordinate] [y coordinate] [z coordinate] [interior]");

        SendClientMessageEx(playerid, COLOR_GRAD2, "You have been teleported to the coordinates specified.");
        SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        SetPlayerInterior(playerid, int);
    }
    return 1;
}



Re: Teleport X Y Z - doreto - 31.08.2013

SetPlayerPos & GetPlayerPos - SA-MP WIKI


Re: Teleport X Y Z - roncohen - 31.08.2013

Admin22 , Have 1 Error.
No Public Functions


Re: Teleport X Y Z - DanishHaq - 31.08.2013

I'm guessing you're using the regular sa-mp command processor? Under OnPlayerCommandText? Or what command processor are you using, like zcmd, ycmd etc.?