Aboodealtikrity Posted January 2, 2015 Share 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 ? Link to comment
Jaysds1 Posted January 31, 2015 Share 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. Link to comment
Aboodealtikrity Posted March 3, 2015 Author Share Posted March 3, 2015 Thanks but i tried its still for one days lool i think there is problem @Jaysds1 Link to comment
Anubhav Posted March 4, 2015 Share Posted March 4, 2015 Those spawned vehicles will be destroyed. Link to comment
Aboodealtikrity Posted March 4, 2015 Author Share Posted March 4, 2015 i know this in generally but in my server doesnt destroy ? Link to comment
Dimmitry007 Posted March 6, 2015 Share 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 Link to comment
xeon17 Posted March 6, 2015 Share Posted March 6, 2015 addEventHandler("onVehicleExplode",root, function () destroyElement(source) end) Link to comment
Aboodealtikrity Posted March 6, 2015 Author Share 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..!! Link to comment
Aboodealtikrity Posted March 6, 2015 Author Share Posted March 6, 2015 addEventHandler("onVehicleExplode",root, function () destroyElement(source) end) thanks my friend i will try this too ... Link to comment
Dimmitry007 Posted March 7, 2015 Share 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) Link to comment
Aboodealtikrity Posted March 7, 2015 Author Share 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 Link to comment
xeon17 Posted March 7, 2015 Share Posted March 7, 2015 His script is doing the same as my. Link to comment
Aboodealtikrity Posted March 7, 2015 Author Share 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 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