Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function agacharseTest(cmd, ms)
- ms = tonumber(ms)
- outputChatBox("First ped, "..tostring(ms).."ms timer")
- local ped = createPed(285, 2387.8, -1738, 13.5)
- setPedControlState(ped, "crouch", true)
- setTimer(function()
- setPedControlState(ped, "crouch", false)
- outputChatBox("done, delay for next ped of 2secs")
- setTimer(function()
- destroyElement(ped)
- ms = ms + 100
- if ms < 1500 then
- agacharseTest(cmd, ms)
- end
- end, 2000, 1)
- end, ms, 1)
- end
- addCommandHandler("agacharse", agacharseTest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement