Jw8. Posted January 27, 2017 Share Posted January 27, 2017 سلام عليكم ورحمة الله وبركاته اقدر اسوي سياره مثال متنفجر ؟؟ لوسمحتو بي اسرع وقت Link to comment
Abdul KariM Posted January 27, 2017 Share Posted January 27, 2017 setVehicleDamageProof Link to comment
Jw8. Posted January 27, 2017 Author Share Posted January 27, 2017 30 minutes ago, Abdul KariM said: setVehicleDamageProof عبد الكريم ذي محاولتي لو سمحت عدله لي local VehicleVIP = {} addEvent ("VIPsetPedCars", true) addEventHandler ("VIPsetPedCars", getRootElement(), function(CarsName) if getElementData(source, "VIP") then if VehicleVIP[source] and isElement( VehicleVIP[source] ) then destroyElement( VehicleVIP[source] ) VehicleVIP[source] = nil end local CarID = getVehicleModelFromName (CarsName) local x,y,z = getElementPosition(source) local carName = getVehicleNameFromModel (CarID) VehicleVIP[source] = createVehicle(CarID, x,y,z) setVehicleColor(VehicleVIP[source], 252, 184, 21) addVehicleUpgrade(VehicleVIP[source], 1010) exports["guimessages"]:outputServer (source,"#3399FF[VIP System] : #00FF00You Get Cars #FF00FF[ "..carName.." ] #00FF00!", 0, 255, 255) warpPedIntoVehicle(source, VehicleVIP[source]) end end ) VehicleVIP[source] = createVehicle(602, 0, 0, 6) setVehicleDamageProof(VehicleVIP[source], true) addEventHandler ( "onPlayerQuit", getRootElement(), function () if VehicleVIP[source] and isElement( VehicleVIP[source] ) then destroyElement( VehicleVIP[source] ) VehicleVIP[source] = nil end end) addEvent("VIPfixVehicle",true) addEventHandler("VIPfixVehicle",root, function () if getElementData(source,"VIP") == true then if isPedInVehicle ( source ) then fixVehicle ( getPedOccupiedVehicle ( source ) ) playSoundFrontEnd(source,46) exports["guimessages"]:outputServer(source,"#3399FF[VIP System] : #00FF00 You Fix Vehicle !",0,255,255) exports["guimessages"]:outputServer(source,"#3399FF[VIP System] : #FF0000Wait 1 Minute To Fix !",0,255,255) end end end ) function vipentre(player) if getElementData(player, "VIP") then return end exports["guimessages"]:outputServer(player ,"#3399FF[VIP System] : #FF0000 Only 'VIP' !", 0, 255, 255, true) cancelEvent() end addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()),vipentre) vehvipB = {} addEventHandler ( "onPlayerQuit", getRootElement(), function () if vehvipB[source] and isElement( vehvipB[source] ) then destroyElement( vehvipB[source] ) vehvipB[source] = nil end end) Link to comment
Abdul KariM Posted January 27, 2017 Share Posted January 27, 2017 احذف سطر 22 وسطر 23 حطه تحت السطر 13 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