Posts: 239
Threads: 33
Joined: Aug 2011
Reputation:
0
Hi, i have idea for my server (and for other too !).
If you exit an vehicle (as driver), car will be delete after 1 minute.
But, if you exit vehicle and then you enter it, car will not delete.
How can this works ?
Posts: 239
Threads: 33
Joined: Aug 2011
Reputation:
0
I know, but i mean something else. System, if you exit vehicle, timer start, but if you enter this vehicle, timer will stop. In timer will be script to destroy the vehicle.
Posts: 761
Threads: 124
Joined: Nov 2010
Reputation:
0
maybe i just missunderstand you but for me this is pointless...
Posts: 734
Threads: 8
Joined: Jun 2009
As already pointed out, you actually do not need a timer for this.
Create the vehicle under OnGameModeInit with AddStaticVehicleEx, set it's respawn_delay parameter(last parameter) to 60(1 minute) and monitor for changes in OnVehicleSpawn.
Posts: 734
Threads: 8
Joined: Jun 2009
I believe the respawn time that function (LoadStaticVehiclesFromFile) sets is actually 30 minutes.
You can change that by editing the gl_common.inc file found in \include folder which comes by default with the SA-MP Server.