SA-MP Forums Archive
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: help! (/showthread.php?tid=427148)



help! - [Crimeson - 31.03.2013

how to save player postion?
not /save
like in script setplayerpos is there an cmd for it?


Re: help! - SuperViper - 31.03.2013

Use /save and then go into Documents => GTA San Andreas User Files => SAMP => savedpositions.txt. You'll see a line that looks like this:

Код:
AddPlayerClass(59,1571.5814,-185.581,12.41,359.6363,0,0,0,0,0,0);
The coordinates for the position are:

X: 1571.5815
Y: -185.581
Z: 12.41
Facing Angle: 359.6363

These are parameters 2 to 5.


AW: help! - [AK]Nazgul - 31.03.2013

You can use GetPlayerPos(playerid,Float:X, Float:Y, Float:Z);
Example:
Код:
command: /getmypos -> new Float:X, Float:Y, Float:Z; -> GetPlayerPos(playerid,X,Y,Z);