Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local checkbox = gui.new_checkbox("door spam")
- local spam = gui.new_button_bind("checkbox", KEY_V)
- local delay = gui.new_slider_int("delay in ticks", 1, 5, 2)
- local lastTick = globals.tickcount()
- local callback = callbacks.register
- local function spamdoor()
- if(gui.get(spam) and gui.get(checkbox)) then
- if(globals.tickcount() - lastTick > 0) then
- client.exec("+use")
- end
- if(globals.tickcount() - lastTick > gui.get(delay)) then
- client.exec("-use")
- lastTick = globals.tickcount()
- end
- end
- end
- callback("create_move", spamdoor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement