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." .. 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 )


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: