Scripting Help
#1

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);
Reply
#2

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);
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)