Dimmitry007 Posted January 21, 2015 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 ;-;
Tekken Posted January 21, 2015 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)
Tekken Posted January 22, 2015 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)
Dimmitry007 Posted January 23, 2015 Author Posted January 23, 2015 cars are not respawning ;-; when i type /svp
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