Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TorgateMoved = false
- local TorGate = createObject ( 3055, -1429.90, 903, 8.39, 0, 0, 90 )
- local LiftGate = createObject( 3114, -1384.36, 902.34, 9.62, 0, 0, 90)
- local LiftGate1 = createObject( 3115, -1369.19, 860.09, 9.89, 0, 0, 90)
- local LiftGate2 = createObject( 3113, -1369.09, 851, 1.1, 0, 0, 90)
- function mv_func ( player )
- if vioGetElementData ( player, "housekey" ) >= 158 then --if getPlayerName(player) == "Puma" or isCop(player) or isFBI(player) or isArmy(player) or
- if getDistanceBetweenPoints3D ( -1429.90, 903, 8.39, getElementPosition ( player ) ) < 17 then
- if TorgateMoved == false then
- moveObject ( TorGate, 3000, -1429.90, 903, 13.3, 90, 0, 0 )
- TorgateMoved = true
- else
- moveObject ( TorGate, 3000, -1429.90, 903, 8.39, -90, 0, 0 )
- TorgateMoved = false
- end
- end
- end
- end
- addCommandHandler ( "mv", mv_func )
- function lift_func ( player )
- if vioGetElementData ( player, "housekey" ) >= 158 then --if getPlayerName(player) == "Puma" or isCop(player) or isFBI(player) or isArmy(player) or
- if getDistanceBetweenPoints3D ( -1384.36, 902.34, 9.62, getElementPosition ( player ) ) < 17 then
- if TorgateMoved == false then
- moveObject ( LiftGate, 3000, -1384.36, 902.34, 16.72, 0, 0, 0 )
- TorgateMoved = true
- else
- moveObject ( LiftGate, 3000, -1384.36, 902.34, 9.62, 0, 0, 0 )
- TorgateMoved = false
- end
- end
- end
- end
- addCommandHandler ( "lift", lift_func )
- function lift1_func ( player )
- if vioGetElementData ( player, "housekey" ) >= 158 then --if getPlayerName(player) == "Puma" or isCop(player) or isFBI(player) or isArmy(player) or
- if getDistanceBetweenPoints3D ( -1369.19, 860.09, 9.89, getElementPosition ( player ) ) < 17 then
- if TorgateMoved == false then
- moveObject ( LiftGate1, 3000, -1369.19, 860.09, 17, 0, 0, 0 )
- TorgateMoved = true
- else
- moveObject ( LiftGate1, 3000, -1369.19, 860.09, 9.89, 0, 0, 0 )
- TorgateMoved = false
- end
- end
- end
- end
- addCommandHandler ( "lift", lift1_func )
- function lift2_func ( player )
- if vioGetElementData ( player, "housekey" ) >= 158 then --if getPlayerName(player) == "Puma" or isCop(player) or isFBI(player) or isArmy(player) or
- if getDistanceBetweenPoints3D ( -1369.09, 851, 1.1, getElementPosition ( player ) ) < 17 then
- if TorgateMoved == false then
- moveObject ( LiftGate2, 3000, -1369.2, 848.09, 11.69, 0, 0, 0 )
- TorgateMoved = true
- else
- moveObject ( LiftGate2, 3000, -1369.09, 851, 1.1, 0, 0, 0 )
- TorgateMoved = false
- end
- end
- end
- end
- addCommandHandler ( "wlift", lift2_func )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement