#Sn[i]pêŘ Posted June 5, 2019 Share Posted June 5, 2019 addEventHandler ( "onPlayerQuit" , root , function ( ) if ( getPedOccupiedVehicle ( source ) and getVehicleController(getPedOccupiedVehicle(source)) == source ) then destroyElement ( getPedOccupiedVehicle ( source ) ) end end ) فين المشكلة ؟ Link to comment
#Sn[i]pêŘ Posted June 5, 2019 Author Share Posted June 5, 2019 2 minutes ago, salh said: انت وش تبي تسوي من الاساس ؟ لو الاعب خرج من السيرفر تنشال سيارته Link to comment
!#NssoR_) Posted June 5, 2019 Share Posted June 5, 2019 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 ) 1 Link to comment
salh Posted June 5, 2019 Share Posted June 5, 2019 -- server function salh(thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then destroyElement ( theVehicle ) end end addEventHandler ( "onPlayerQuit" , root ,salh) 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now