Like this doesn't work, when I hit /uro I got outbox Gate locked..??
URkapija = createObject ( 980, 1465.5, -1498.3000488281, 15.300000190735, 0, 0, 90 )
function open(command)
if not( getPlayerAccount(source) == "Mateo1997" ) then
cancelEvent()
outputChatBox("(UR Baza) Kapija Zakljucana.",thePlayer )
else
moveObject ( URgate, 3000, 1465.5, -1498.3000488281, 9.6999998092651, 0, 0, 0)
outputChatBox("(UR Baza) Kapija otvorena. Ne zaboravi zatvoriti!",thePlayer )
end
end
addCommandHandler("uro", open)
function close(command)
moveObject ( URkapija, 3000, 1465.5, -1016.8994140625, 15.300000190735, 0, 0, 0)
outputChatBox("(UR Baza) Kapija zatvorena.",thePlayer )
end
addCommandHandler("urz", close)