Sign in to follow this  
#Sn[i]pêŘ

xXxgetPedOccupiedVehiclexXx

Recommended Posts

addEventHandler ( "onPlayerQuit" , root , function ( )
if ( getPedOccupiedVehicle ( source ) and getVehicleController(getPedOccupiedVehicle(source)) == source ) then 
destroyElement ( getPedOccupiedVehicle ( source ) ) 
end
end ) 

فين المشكلة ؟

Share this post


Link to post

انت وش تبي تسوي من الاساس ؟

Share this post


Link to post
2 minutes ago, salh said:

انت وش تبي تسوي من الاساس ؟

لو الاعب خرج من السيرفر

تنشال سيارته

:lol:

Share this post


Link to post
addEventHandler ( "onPlayerQuit" , root ,
function ( )
	local veh = getPedOccupiedVehicle ( source )
	if ( veh ) then 
		local Driver = getVehicleController(veh)
		if ( Driver == source ) then 
			destroyElement ( getPedOccupiedVehicle ( Driver ) ) 
		end
	end
end ) 

 

  • Thanks 1

Share this post


Link to post
-- server


function salh(thePlayer )
   local theVehicle = getPedOccupiedVehicle ( thePlayer )
   if theVehicle then
      destroyElement ( theVehicle )
   end
end
addEventHandler ( "onPlayerQuit" , root ,salh)

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.