Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1. --[[
  2. Brama Antyterroryści
  3. 1: /bat1
  4. 2: /bat2
  5. 3: /bat3
  6. SERVER SIDE
  7. --]]
  8.  
  9.  -- Pilary (BramaGlowny)
  10. createObject(2774, -1639.5, 689.09998, 3.1, 0, 0, 0)
  11. createObject(2774, -1637.9, 689.09998, 3.1, 0, 0, 0)
  12. createObject(2774, -1624.1, 689.09998, 3.1, 0, 0, 0)
  13. createObject(2774, -1625.7, 689.09998, 3.1, 0, 0, 0)
  14.  
  15.  -- Inne Obiekty
  16. brG = createObject(975, -1572.0996, 661.2998, 7.9, 0, 0, 270)
  17. brama2 = createObject(975, -1701, 684.29999, 25.5, 0, 0, 90)
  18. bramaGLOWNY = createObject(987, -1637.5, 689.5, 6, 0, 0, 0)
  19. staR = false
  20. statuss=false
  21. statusGLOWNY=false
  22.  
  23.  -- Wjazd 1
  24.  function openGATE()
  25.  if staR == false then
  26.  moveObject(brG, 2000, -1572.0996, 661.2998, 7.9 - 6, 0, 0, 0)
  27.  staR = true
  28.  else
  29.  moveObject(brG, 2000, -1572.0996, 661.2998, 7.9, 0, 0, 0)
  30.  staR = false
  31.  end
  32. end
  33. addCommandHandler("bat1", openGATE)
  34.  
  35.  
  36.  -- Wjazd 2
  37.  function openBrama2()
  38.  if statuss == false then
  39.  moveObject(brama2, 2000, -1701, 684.29999, 25.5 - 6, 0, 0, 0)
  40.  statuss = true
  41.  else
  42.  moveObject(brama2, 2000, -1701, 684.29999, 25.5, 0, 0, 0)
  43.  statuss = false
  44.  end
  45. end
  46. addCommandHandler("bat2", openBrama2)
  47.  
  48.  
  49.  -- Wjazd GLOWNY
  50.  function openBramaG()
  51.  if statusGLOWNY == false then
  52.  moveObject(bramaGLOWNY, 2000, -1637.5, 689.5, 6-10, 0, 0, 0)
  53.  statusGLOWNY = true
  54.  else
  55.  moveObject(bramaGLOWNY, 2000, -1637.5, 689.5, 6, 0, 0, 0)
  56.  statusGLOWNY = false
  57.  end
  58. end
  59. addCommandHandler("bat3", openBramaG)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement