Scripting Help - 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: Scripting Help (
/showthread.php?tid=521671)
Scripting Help -
kirostar - 24.06.2014
How to get Player Position
example : if i want players when do this command /ls teleports to los santos but in the place i want
how to get the player position like :
Код:
SetPlayerPos(playerid, -149.6335,45.9873,5.9190);
Re: Scripting Help -
Amel_PAtomAXx - 24.06.2014
Once you're in game, use "
/save" command and your informations will be saved into a file (Position, Angle, etc)
And that file can be found in
My Documents\GTA San Andreas User Files\SAMP\ with name
savedpositions
Open it and you will see some codes like this:
AddPlayerClass(124,
2165.8428,-997.8170,62.9631,257.1611,0,0,0,0,0,0); // If you did
/save command on foot
or
AddStaticVehicle(560,
2165.8428,-997.8170,62.9631,159,205); // if you did
/save command in vehicle
Cordinates would be
2165.8428,-997.8170,62.9631
and the function would be: SetPlayerPos(playerid,
2165.8428,-997.8170,62.9631);
Re: Scripting Help -
kirostar - 24.06.2014
Thanks.