sPos in /dl
#1

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



these coordinates are somewhere saved
Reply
#2

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

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.
Reply
#4

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
Reply
#5

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...
Reply
#6

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)