Advertisement
Guest User

Untitled

a guest
May 1st, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. function sleep(n)
  2.   os.execute("sleep " .. tonumber(n))
  3. end
  4.  
  5. function fly(target)
  6.     if target then
  7.     local vehicle = getPedOccupiedVehicle(target)
  8.         if vehicle then
  9.         local sx, sy, sz = getElementVelocity (vehicle)
  10.         setElementVelocity( vehicle ,sx+1.3, sy, sz+1.3)
  11.         local x,y,z = getElementPosition(vehicle)
  12.         --setElementPosition(vehicle, x,y,z+5)
  13.         end
  14.     end    
  15. end
  16.  
  17. addEventHandler("onGamemodeMapStart", getRootElement(), function()
  18.     setTimer ( function()
  19.         for k,v in ipairs(getElementsByType("player")) do
  20.             if spect == true then
  21.             local asd = getPlayerTeam(v)
  22.                 if asd then
  23.                 local find1, find2 = string.find(getPlayerName(v), "(S)", 1, true)
  24.                     if getTeamName(asd) == "NIGGERS [SPECTATORS]" or find2 then
  25.                         if getElementData(v, "state") == "alive" then
  26.                         local vehicle = getPedOccupiedVehicle(v)
  27.                             if vehicle then
  28.                                 if isVehicleOnGround(vehicle) == true then    
  29.                                 fly(v)
  30.                                 sleep(2)
  31.                                 blowVehicle(vehicle, true)
  32.                                 end
  33.                             end
  34.                         end
  35.                     end
  36.                 end
  37.             end
  38.         end
  39.     end, 1000, 0 )
  40. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement