Go to Coords - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Go to Coords (
/showthread.php?tid=174515)
Go to Coords -
Anthonyx3' - 05.09.2010
Is there a cmd to go to coords?
Re: Go to Coords -
Las Venturas CNR - 06.09.2010
Not by default. To make a teleport command though, refer to this:
https://sampforum.blast.hk/showthread.php?tid=41169
Re: Go to Coords -
Anthonyx3' - 06.09.2010
I know how to make a teleport command, i was referring to command like /gotox x y z.
Re: Go to Coords -
CyNiC - 06.09.2010
In the FS Debug (standart of SA-MP Files) you can see a command like that.
Re: Go to Coords -
iggy1 - 06.09.2010
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.
Re: Go to Coords -
Anthonyx3' - 06.09.2010
Thanks both of you x]