Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local API = args[1]
- local user = args[2]
- local mode = tonumber(args[3])
- local time = tonumber(args[4])
- if time and time <= API.Config.MaxTime then
- API.setLottoRunning(true)
- API.setLottoTimer(os.startTimer(tonumber(time))) --y u no work!?
- API.say(nil,"A Lotto is starting! Lasting: "..time.." Secs Use ..lotto<amount> or ##lotto <amount> to enter!")
- elseif time and time > API.Config.MaxTime then
- API.message( mode, user, "The maximum lotto time is 300 seconds.")
- else
- API.message( mode, user, "Incorrect syntax, startlotto <time>")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement