Das Gate geht auf, aber nicht zu! pls help
Lua
SFPDGate1 = createObject ( 980, -1634.3143310547, 688.29608154297, 8.9608917236328, 0, 0, 0 )
SFPDGate2 = createObject ( 980, -1622.7777099609, 688.29217529297, 8.96089, 0, 0, 0 )
function mv_func ( player )
if isCop(player) or isFBI(player) or isArmy(player) or isswat(player) or isSEK(player) then
if getDistanceBetweenPoints3D ( -1634.3143310547, 688.29608154297, 8.9608917236328, getElementPosition ( player ) ) < 17 then
moveObject ( SFPDGate1, 3000, -1646.1239013672, 688.70806884766, 8.9608917236328 )
moveObject ( SFPDGate2, 3000, -1612.7661132813, 688.50366210938, 8.9608917236328 )
outputChatBox("Das Tor schliest sich in 10 Sekunden Wieder", player )
setTimer ( mv_funcz, 10000, 1 )
end
elseif not isMafia(player) and not isReporter(player) and not isFBI(player) and not isAztecas(player) and not isArmy(player) and not isTerror(player) then
outputChatBox ( "Du bist nicht befugt!", player, 125, 0, 0 )
end
end
addCommandHandler ( "pdtor", mv_func )
function mv_funcz ( )
moveObject ( SFPDGate1, 3000, -1634.3143310547, 688.29608154297, 8.9608917236328 )
moveObject ( SFPDGate2, 3000, -1622.7777099609, 688.29217529297, 8.96089 )
end
Alles anzeigen