Wysłany: 2016-01-23, 22:27
Toporek
Wiek: 41 Na forum: 3976 dni Posty: 37
Nick w MP: spejson
Piwa : 1
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
Ostatnio zmieniony przez #404 2016-01-24, 00:09, w całości zmieniany 1 raz
Wysłany: 2016-01-24, 00:10
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
Toporek , ale ty tu tak na dobr? spraw? nic nie doda?e?... A to
addEventHandler ( "Remove the tent" , getRootElement (), cancelEvent )
nic nie daje, powiem wi?cej, powinno nawet wywala? b??d...
To musisz w plikach dayz'a przy opcji usuwania namiotu poszuka? funkcji i w niej sprawdzi? czy ma obiekt np elementDat? "admin" i je?eli ma, to ?eby nie usuwa?o.
Tagi: armybox/dayz :: zrobic?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: