Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sleep(n)
- os.execute("sleep " .. tonumber(n))
- end
- function fly(target)
- if target then
- local vehicle = getPedOccupiedVehicle(target)
- if vehicle then
- local sx, sy, sz = getElementVelocity (vehicle)
- setElementVelocity( vehicle ,sx+1.3, sy, sz+1.3)
- local x,y,z = getElementPosition(vehicle)
- --setElementPosition(vehicle, x,y,z+5)
- end
- end
- end
- addEventHandler("onGamemodeMapStart", getRootElement(), function()
- setTimer ( function()
- for k,v in ipairs(getElementsByType("player")) do
- if spect == true then
- local asd = getPlayerTeam(v)
- if asd then
- local find1, find2 = string.find(getPlayerName(v), "(S)", 1, true)
- if getTeamName(asd) == "NIGGERS [SPECTATORS]" or find2 then
- if getElementData(v, "state") == "alive" then
- local vehicle = getPedOccupiedVehicle(v)
- if vehicle then
- if isVehicleOnGround(vehicle) == true then
- fly(v)
- sleep(2)
- blowVehicle(vehicle, true)
- end
- end
- end
- end
- end
- end
- end
- end, 1000, 0 )
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement