brama1 = createObject( 11313, -2102.099,-38, 36.299, 0, 0, 180 )
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama1, 2000, -2102.099,-38, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama1, 2000, -2102.099,-38, 36.299)
end
end
addCommandHandler("z",bramaz)
---------------------------------
brama2 = createObject( 11313, -2102.100,-28.5, 36.299, 0, 0, 180 )
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama2, 2000, -2102.100,-28.5, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama2, 2000, -2102.100,-28.5, 36.299)
end
end
addCommandHandler("z",bramaz)
---------------------------------
brama3 = createObject( 11313, -2102.100,-18.799, 36.299, 0, 0, 180 )
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama3, 2000, -2102.100,-18.799, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama3, 2000, -2102.100,-18.799, 36.299)
end
end
addCommandHandler("z",bramaz)
---------------------------------
brama4 = createObject( 11313, -2102.100,-9.300, 36.299, 0, 0, 180 )
function bramao (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama4, 2000, -2102.100,-9.300, 32.3)
end
end
addCommandHandler("o",bramao)
function bramaz (thePlayer)
if getElementData(thePlayer,'player:duty') and getElementData(thePlayer,'player:duty')=='PSP' then
moveObject ( brama4, 2000, -2102.100,-9.300, 36.299)
end
end
addCommandHandler("z",bramaz)
---------------------------------
local gate = createObject ( 3089, -2114.600,-0.300, 40.900, 0, 0, 0 )
function open()
moveObject (gate, 1000, -2116,-0.300, 40.900 )
end
addCommandHandler("open", open)
function close()
moveObject (gate, 500, -2114.600,-0.300, 40.900 )
end
addCommandHandler("off", close)
-------------------------------
local gate = createObject ( 3089, -2111.699,-0.300, 40.900, 0, 0, 180 )
function open()
moveObject (gate, 1000, -2110.399,-0.300, 40.900 )
end
addCommandHandler("open", open)
function close()
moveObject (gate, 500, -2111.699,-0.300, 40.900 )
end
addCommandHandler("off", close) Wpisuje o i nic