Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: armybox/dayz
1. armybox/dayz co zrobic?
Siema,przerabiam w?asnie skrypt na armyboxa na dayz,wyglada on tak:


function tentdayz(thePlayer)
accountname getAccountName(getPlayerAccount(thePlayer))
if 
not isObjectInACLGroup("user." .. accountnameaclGetGroup("Admin")) then
return outputChatBox"Nie jeste? Administatorem"thePlayer end
local x
ygetElementPosition(thePlayer)
    
tent createObject(2973xy+1z-1)
if 
not tent then return end

setObjectScale
(tent1.2)
tentCol createColSphere(yz,  4)
Blip createBlipxy+4z-141 )

    
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 )


Problem w tym,ze mimo wstawionych linijek,dalej mozna usunac armyboxa,macie jakis pomys?,co ?le wpisa?em?Co wstawi?,zeby nie mo?na by?o usunac tego armyboxa? pomozcie prosze,sam chce wiedziec co ?le dopisa?em.wynagrodze :piwo: