SA-MP Forums Archive
These coords into a command? - 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)
+--- Thread: These coords into a command? (/showthread.php?tid=343003)



These coords into a command? - Elysian` - 15.05.2012

Using these coords:
Код:
-2864.1000976563, 503.5, 5.5, 0, 0, 90);
How would I put them into a command to go underground?

I'm not sure you can do it with these coords which is why I'm asking.


Respuesta: These coords into a command? - [DOG]irinel1996 - 15.05.2012

Your line looks as an object coordenates: X, Y, Z, RotX, RotY, RotZ. But it's strange, should be 0.0, not 0.
If they're, you just need X, Y, Z, and use them to set player position.
pawn Код:
SetPlayerPos(playerid,-2864.1000976563, 503.5, 5.5);
If you want go underground you need less value in Z, for example, we have 5.5 which is the ground, to go underground you need for example 5.0 or less, something as 4.5
Good luck!


Re: These coords into a command? - park4bmx - 15.05.2012

That's not cords!
Well it could be used but I sought they are.
You will need the X,Y,Z
GO to the pos you want to get the cords from then just type /save pos (name)
Will save a .txt file in GTA Sa User files/Samp/


Re: These coords into a command? - Elysian` - 15.05.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
That's not cords!
Well it could be used but I sought they are.
You will need the X,Y,Z
GO to the pos you want to get the cords from then just type /save pos (name)
Will save a .txt file in GTA Sa User files/Samp/
Can't really do that when there is an object in the way! :P


Re: These coords into a command? - Face9000 - 15.05.2012

You just need the X,Y and Z coordinates,nothing more.

What you need for "go underground"...?


Re: These coords into a command? - Elysian` - 15.05.2012

It's like when you type /opengate for example, the gate will go underground, allowing you to get out.