Posts: 1,501
	Threads: 19
	Joined: Nov 2007
	
Reputation: 
0
	 
	
	
		It destroys the car your in?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 401
	Threads: 27
	Joined: Jun 2007
	
Reputation: 
0
	 
	
	
		What if the player enters the car in the 5 seconds between the kick-out-of-car and the destoying of the vehicle..?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 177
	Threads: 4
	Joined: Aug 2007
	
Reputation: 
0
	 
	
	
		Secure way to destroy a car:
1) respawn the car (it forces everyone out off the vehicle without any loops)
2) Onvehiclespawn set vehiclevirtualworld to a world you dont use (no one can enter it)
3) Onvehiclespawn Set a timer to destroy vehicle after 5-10 seconds, this delay ensures no lagging player is in it.
Simple and it works without any loops or other timeconsuming operations which can allow someone to enter it.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 177
	Threads: 4
	Joined: Aug 2007
	
Reputation: 
0
	 
	
	
		Do that and you have a crashing server..You need the timeout to handle lagging players..
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 177
	Threads: 4
	Joined: Aug 2007
	
Reputation: 
0
	 
	
	
		Im glad taxi to hear you had no problems with it as i remember we developed this method together in a topic some time back. Its pretty smooth as there is no looping and other overhead involved and it takes care of pitfalls like lagging players.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 177
	Threads: 4
	Joined: Aug 2007
	
Reputation: 
0
	 
	
	
		Happy coding trying it out - im pretty confident that you will have success if you do it as posted here, then you can change your avitar and maybe give taxi and me credit LOL
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 232
	Threads: 5
	Joined: Aug 2007
	
Reputation: 
0
	 
	
	
		hmm i had 5 seconds but now i put 1 second because it works the same i already tested with more players nowone crash he have time to leave vehicle and no time to come back so whats the problem...