Teleport X Y Z
#1

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

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

SetPlayerPos & GetPlayerPos - SA-MP WIKI
Reply
#4

Admin22 , Have 1 Error.
No Public Functions
Reply
#5

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.?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)