function tentdayz(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if not isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then return outputChatBox( "Nie jeste? Administatorem", thePlayer ) end local x, y, z = getElementPosition(thePlayer) tent = createObject(2973, x, y+1, z-1) if not tent then return end setObjectScale(tent, 1.2) tentCol = createColSphere(x , y, z, 4) Blip = createBlip( x, y+4, z-1, 41 ) setElementData(tentCol, "parent", tent) setElementData(tent, "parent", tentCol) setElementData(tentCol, "tent", true) setElementData(tentCol, "vehicle", true) setElementData(tentCol, "Remove the tent", false) setElementData(tentCol, "MAX_Slots", 4000000) setElementData(tentCol, "G17", 10) setElementData(tentCol, "G17 Mag", 10) setElementData(tentCol, "Hatchet", 999) ...... end addCommandHandler("armybox", tentdayz) addEventHandler ( "Remove the tent", getRootElement(), cancelEvent )