Go to Coords
#1

Is there a cmd to go to coords?
Reply
#2

Not by default. To make a teleport command though, refer to this: https://sampforum.blast.hk/showthread.php?tid=41169
Reply
#3

I know how to make a teleport command, i was referring to command like /gotox x y z.
Reply
#4

In the FS Debug (standart of SA-MP Files) you can see a command like that.
Reply
#5

Heres a quick one i wrote but you will need zcmd and sscanf2 (maybe normal sscanf will work not sure) its very very simple but should work.
pawn Код:
COMMAND:goto(playerid,params[])
{
    new Float:x,Float:y,Float:z;
   
    if(sscanf(params,"fff",x,y,z))return SendClientMessage(playerid,0xff0000FF,"ERROR: Usage /goto [xcoord][ycoord][zcoord]");
    else
    {
        SetPlayerPos(playerid,x,y,z);
    }
    return 1;
}
EDIT: your welcome but i was thinking you would have to be quite accurate with the 'z' co-ord because you might spawn in the sky or even underground.
Reply
#6

Thanks both of you x]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)