12.01.2013, 22:12
(
Последний раз редактировалось Limbo; 12.01.2013 в 22:51.
)
SIMPLIFIED: How Do I remove a vehicle from the server (stop from respawning or showing up)as soon as someone disconnects?
Hi, I'm new to sa-mp server scripting and just recently attempted to make vehicles belong to specific players.
Now, when I do AddStaticVehicle(...); The vehicle gets added to a LIST of vehicles correct? And in a list, they are usually given a KEY... correct? And everytime I add a static vehicle, the key increments... correct?
So what I'm trying to get here is, is there any way for me to grab a key out of some sort of list for the vehicles tgat are spawned? I'm pretty sure the server has one because if it did not, when the vehicle would move, no other player would be able to see that SPECIFIC car move unless it had a key[number slot] for that specific car in a list, and was was using that key to update that specific car's location to other players.
If I'm not making any sense let me know :S
Edit:
If no one can help me out with that, then I can try to figure it out myself if someone can tell me this:
If I AddStaticVehicle(..), How can I remove THAT specific vehicle? Or am I gonna have to write my own system of loading vehicles into something with unique numbers assigned to each individual vehicle I spawn?
Hi, I'm new to sa-mp server scripting and just recently attempted to make vehicles belong to specific players.
Now, when I do AddStaticVehicle(...); The vehicle gets added to a LIST of vehicles correct? And in a list, they are usually given a KEY... correct? And everytime I add a static vehicle, the key increments... correct?
So what I'm trying to get here is, is there any way for me to grab a key out of some sort of list for the vehicles tgat are spawned? I'm pretty sure the server has one because if it did not, when the vehicle would move, no other player would be able to see that SPECIFIC car move unless it had a key[number slot] for that specific car in a list, and was was using that key to update that specific car's location to other players.
If I'm not making any sense let me know :S
Edit:
If no one can help me out with that, then I can try to figure it out myself if someone can tell me this:
If I AddStaticVehicle(..), How can I remove THAT specific vehicle? Or am I gonna have to write my own system of loading vehicles into something with unique numbers assigned to each individual vehicle I spawn?