Aboodealtikrity Posted January 2, 2015 Posted January 2, 2015 greetings ..excuse me my friends the cars doesnt remove from the server it staying whats the resource or command for delete it constantly ?
Jaysds1 Posted January 31, 2015 Posted January 31, 2015 There's no resource that deletes it automatically. If you're running Freeroam then I think that it gets remove after a certain time or after a player spawns 2-3 cars.
Aboodealtikrity Posted March 3, 2015 Author Posted March 3, 2015 Thanks but i tried its still for one days lool i think there is problem @Jaysds1
Aboodealtikrity Posted March 4, 2015 Author Posted March 4, 2015 i know this in generally but in my server doesnt destroy ?
Dimmitry007 Posted March 6, 2015 Posted March 6, 2015 function dAllC(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do destroyElement(getElementData(v, "parent")) destroyElement(v) outputChatBox("Cars have been deleted !",thePlayer, 255, 0, 0, false) end end end addCommandHandler("dallvehs", dAllC) try it
xeon17 Posted March 6, 2015 Posted March 6, 2015 addEventHandler("onVehicleExplode",root, function () destroyElement(source) end)
Aboodealtikrity Posted March 6, 2015 Author Posted March 6, 2015 function dAllC(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do destroyElement(getElementData(v, "parent")) destroyElement(v) outputChatBox("Cars have been deleted !",thePlayer, 255, 0, 0, false) end end end addCommandHandler("dallvehs", dAllC) try it Good and thank you i tried to Make destroying for IDLE vehicles but if someone new enter the server and Buy if vehicle for e.g if i use this command it will destroy i want just for old car..!!
Aboodealtikrity Posted March 6, 2015 Author Posted March 6, 2015 addEventHandler("onVehicleExplode",root, function () destroyElement(source) end) thanks my friend i will try this too ...
Dimmitry007 Posted March 7, 2015 Posted March 7, 2015 oh u mean u want to remove the exploded cars ok then try this -- 1 seg = 1000 local tiempoparadesaparecer = 5000 -- Function function desaparecer() setTimer(destroyElement, tiempoparadesaparecer, 1, source) end -- Event addEventHandler("onVehicleExplode", getRootElement(), desaparecer)
Aboodealtikrity Posted March 7, 2015 Author Posted March 7, 2015 oh u mean u want to remove the exploded carsok then try this -- 1 seg = 1000 local tiempoparadesaparecer = 5000 -- Function function desaparecer() setTimer(destroyElement, tiempoparadesaparecer, 1, source) end -- Event addEventHandler("onVehicleExplode", getRootElement(), desaparecer) Thanks my friend i will try it
Aboodealtikrity Posted March 7, 2015 Author Posted March 7, 2015 His script is doing the same as my. thanks for you guys i havent seen it yet because im doing different script when i finish it i will try it
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