Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function agacharseTest(cmd, ms)
  2. ms = tonumber(ms)
  3. outputChatBox("First ped, "..tostring(ms).."ms timer")
  4. local ped = createPed(285, 2387.8, -1738, 13.5)
  5. setPedControlState(ped, "crouch", true)
  6. setTimer(function()
  7. setPedControlState(ped, "crouch", false)
  8. outputChatBox("done, delay for next ped of 2secs")
  9. setTimer(function()
  10. destroyElement(ped)
  11. ms = ms + 100
  12. if ms < 1500 then
  13. agacharseTest(cmd, ms)
  14. end
  15. end, 2000, 1)
  16. end, ms, 1)
  17. end
  18. addCommandHandler("agacharse", agacharseTest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement