what do i need for this?
#3

you might want to be able to determine which playerid a vehicle belongs to...
Код:
new VehicleIDOwner[2000];
...and also using a /lock command on a vehicle, retrieved by the playerid:
Код:
new PlayerOwnsVehicleID[Max-players];
by having a "2-way" array of players and vehicles, you have all possibilities to enhance the behavior.

any vehicle spawned (at server (re)start / or ingame created), will have no owner - a player logging in doesnt own a vehicle, unless the f.ex. <playername>.ini also includes the vehicleid, its' position and rotation, maybe colors aswell, and, last but not least, the playerid.

when a vehicle blows up, dont forget to either reset its ownerID, or ignore it.
when a player disconnects, save that vehicle, and destroy it, OR reset the owner so other players can use it (if the vehicle is not auto-locked).
Reply


Messages In This Thread
what do i need for this? - by ross8839 - 18.02.2014, 18:38
Re: what do i need for this? - by Ada32 - 18.02.2014, 18:58
Re: what do i need for this? - by Babul - 18.02.2014, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)