SA-MP Forums Archive
sPos in /dl - 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: sPos in /dl (/showthread.php?tid=606306)



sPos in /dl - Ferjkee - 02.05.2016

can I get sPos (spawn position) in /dl?



these coordinates are somewhere saved


Re: sPos in /dl - SyS - 02.05.2016

user /rs comment here
it will be saved in your userfiles/samp floder i think


Re: sPos in /dl - NaS - 02.05.2016

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
user /rs comment here
it will be saved in your userfiles/samp floder i think
What? That's not what he is talking about.


You spawn all the vehicles on your server, so you can save the positions in an array or somewhere else and you have them.
Use OnVehicleSpawn + GetVehiclePos so you can also get vehicle spawn coords from other scripts.

There's no native to get a vehicle's spawn position.


Re: sPos in /dl - Dayrion - 02.05.2016

What is the difference between cPos and sPos ?
/save doesn't save both?

/save is a native command by SA:MP which is saving the position of a vehicle like : AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); //

To comment before saving the positions : /save SPAWN LS and it's will be :
AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); // SPAWN LS

Useful to get coordinates. They are there : AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); // SPAWN LS
x, y, z, rotation


Re: sPos in /dl - NaS - 02.05.2016

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
What is the difference between cPos and sPos ?
/save doesn't save both?

/save is a native command by SA:MP which is saving the position of a vehicle like : AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); //

To comment before saving the positions : /save SPAWN LS and it's will be :
AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); // SPAWN LS

Useful to get coordinates. They are there : AddStaticVehicle(411,-1988.9928,261.8291,34.9064,82.2253,90,90); // SPAWN LS
x, y, z, rotation
cPos is the current position of the vehicle, sPos the spawn position.
/save or /rs have nothing to do with it, they only save the current position for creating vehicles/getting coords.

It's obvious that /save or /rs don't save the spawn position, why would you need it?
That's why it's included in /dl...


Re: sPos in /dl - SyS - 02.05.2016

Quote:
Originally Posted by NaS
Посмотреть сообщение
What? That's not what he is talking about.
Oh my appologies


Re: sPos in /dl - Dayrion - 02.05.2016

Quote:
Originally Posted by NaS
Посмотреть сообщение
cPos is the current position of the vehicle, sPos the spawn position.
/save or /rs have nothing to do with it, they only save the current position for creating vehicles/getting coords.

It's obvious that /save or /rs don't save the spawn position, why would you need it?
That's why it's included in /dl...
Ohhhhhh ok! I didn't know that. Thanks you.