Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Brama Antyterroryści
- 1: /bat1
- 2: /bat2
- 3: /bat3
- SERVER SIDE
- --]]
- -- Pilary (BramaGlowny)
- createObject(2774, -1639.5, 689.09998, 3.1, 0, 0, 0)
- createObject(2774, -1637.9, 689.09998, 3.1, 0, 0, 0)
- createObject(2774, -1624.1, 689.09998, 3.1, 0, 0, 0)
- createObject(2774, -1625.7, 689.09998, 3.1, 0, 0, 0)
- -- Inne Obiekty
- brG = createObject(975, -1572.0996, 661.2998, 7.9, 0, 0, 270)
- brama2 = createObject(975, -1701, 684.29999, 25.5, 0, 0, 90)
- bramaGLOWNY = createObject(987, -1637.5, 689.5, 6, 0, 0, 0)
- staR = false
- statuss=false
- statusGLOWNY=false
- -- Wjazd 1
- function openGATE()
- if staR == false then
- moveObject(brG, 2000, -1572.0996, 661.2998, 7.9 - 6, 0, 0, 0)
- staR = true
- else
- moveObject(brG, 2000, -1572.0996, 661.2998, 7.9, 0, 0, 0)
- staR = false
- end
- end
- addCommandHandler("bat1", openGATE)
- -- Wjazd 2
- function openBrama2()
- if statuss == false then
- moveObject(brama2, 2000, -1701, 684.29999, 25.5 - 6, 0, 0, 0)
- statuss = true
- else
- moveObject(brama2, 2000, -1701, 684.29999, 25.5, 0, 0, 0)
- statuss = false
- end
- end
- addCommandHandler("bat2", openBrama2)
- -- Wjazd GLOWNY
- function openBramaG()
- if statusGLOWNY == false then
- moveObject(bramaGLOWNY, 2000, -1637.5, 689.5, 6-10, 0, 0, 0)
- statusGLOWNY = true
- else
- moveObject(bramaGLOWNY, 2000, -1637.5, 689.5, 6, 0, 0, 0)
- statusGLOWNY = false
- end
- end
- addCommandHandler("bat3", openBramaG)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement