Lua
MAFIAgate4Moved1 = true
MAFIAGate41 = createObject ( 10252, 213.60000610352, -99.599998474121, 5894.3999023438, 0, 270, 0 )
MafiaDoorKeypadA1 = createObject ( 2886, 211.8994140625, -100.099609375, 5897.2998046875, 0, 0, 179.99450683594 )
MafiaCasinoKeypads = {
[MafiaDoorKeypadA1]=true
}
function moveCasinoDoor1 ( player )
if isMafia ( player ) and not MAFIAgate4Moving1 then
MAFIAgate4Moving1 = true
MAFIAgate4Moved1 = not MAFIAgate4Moved1
if MAFIAgate4Moved1 then
moveObject ( MAFIAGate41, 2500, 213.60000610352, -99.599998474121, 5894.3999023438, 0, 0, 0 )
else
moveObject ( MAFIAGate41, 2500, 216.60000610352, -99.800003051758, 5894.3999023438, 0, 0, 358 )
end
setTimer (
function ()
MAFIAgate4Moving1 = false
end,
2500, 1 )
end
end
Alles anzeigen
Das Gate lässt sich nicht bewegen -.-