26.05.2010, 08:39
Quote:
Originally Posted by park4bmx
Look's good but does it save the vehicles
|
This will save your vehicle (XYZA MODEL) and Colors + price.
This will save into 'hirevehicles.pwn' in your scriptfiles folder.
You copy and paste them to OnFilterScriptInt();
Reload the Filterscript, and they will be there.
When somebody hires a vehicle and disconnects, the vehicle gets respawned and unhired, to avoid all the vehicles being hired etc.
Just a failsafe thing.
However you can add it yourself at your own risk of the above.
Exampe: 100 players on server, 20 of them have hire vehicles, you have 20 hire vehicles, so their all used up, when they disconnect, it's still theirs! a restart would then be needed to unhire them.
So yeah, the disconnect resetting is just a Fail-safe thing, though maybe I'll re-write part of the script so you get the vehicle for XX minutes then it's returned.