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 ? I Would like To learn the Scripting But? no one Helping in this world
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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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 I Would like To learn the Scripting But? no one Helping in this world
Anubhav Posted March 3, 2015 Posted March 3, 2015 /stop play See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Aboodealtikrity Posted March 3, 2015 Author Posted March 3, 2015 why ? I Would like To learn the Scripting But? no one Helping in this world
Anubhav Posted March 4, 2015 Posted March 4, 2015 Those spawned vehicles will be destroyed. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Aboodealtikrity Posted March 4, 2015 Author Posted March 4, 2015 i know this in generally but in my server doesnt destroy ? I Would like To learn the Scripting But? no one Helping in this world
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 sup?
xeon17 Posted March 6, 2015 Posted March 6, 2015 addEventHandler("onVehicleExplode",root, function () destroyElement(source) end) A unique GangWar gamemode waiting for you!Click here for more information.
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..!! I Would like To learn the Scripting But? no one Helping in this world
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 ... I Would like To learn the Scripting But? no one Helping in this world
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) sup?
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 I Would like To learn the Scripting But? no one Helping in this world
xeon17 Posted March 7, 2015 Posted March 7, 2015 His script is doing the same as my. A unique GangWar gamemode waiting for you!Click here for more information.
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 I Would like To learn the Scripting But? no one Helping in this world
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