Dimmitry007 Posted January 21, 2015 Share Posted January 21, 2015 hello guys i have a really big big problem i've a dayz server and every thing work good but ;-; there's in LS AP alot of car spawn look here's pic http://prntscr.com/5v4qli please help ;-; Link to comment
Bean666 Posted January 21, 2015 Share Posted January 21, 2015 we can't help u if u wont show us the code Link to comment
Tekken Posted January 21, 2015 Share Posted January 21, 2015 Yow can use this for deleting all cars and also coolshape : 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) Link to comment
Dimmitry007 Posted January 22, 2015 Author Share Posted January 22, 2015 thanks mihaay Link to comment
Tekken Posted January 22, 2015 Share Posted January 22, 2015 thanks mihaay No problem, Use this to destroy a car, do not use 'P' for Spawning or Destroying a car ! function DestroyVehicle(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then if isPedInVehicle(thePlayer) then local col = getElementData(getPedOccupiedVehicle(thePlayer), "parent") destroyElement(col) destroyElement(getPedOccupiedVehicle(thePlayer)) else outputChatBox("You must be in a vehicle!", thePlayer, 255, 0, 0) end end end addCommandHandler("destroy", DestroyVehicle) Link to comment
Dimmitry007 Posted January 23, 2015 Author Share Posted January 23, 2015 cars are not respawning ;-; when i type /svp Link to comment
Tekken Posted January 24, 2015 Share Posted January 24, 2015 hmm, i tink you need to restart DayZ resource Link to comment
Dimmitry007 Posted January 25, 2015 Author Share Posted January 25, 2015 it worked Thanks! 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