Advertisement
incinirate

startlotto

Jun 25th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local args = {...}
  2.  
  3. local API = args[1]
  4. local user = args[2]
  5. local mode = tonumber(args[3])
  6. local time = tonumber(args[4])
  7.  
  8. if time and time <= API.Config.MaxTime then
  9.   API.setLottoRunning(true)
  10.   API.setLottoTimer(os.startTimer(tonumber(time))) --y u no work!?
  11.   API.say(nil,"A Lotto is starting! Lasting: "..time.." Secs Use ..lotto<amount> or ##lotto <amount> to enter!")
  12. elseif time and time > API.Config.MaxTime then
  13.   API.message( mode, user, "The maximum lotto time is 300 seconds.")
  14. else
  15.   API.message( mode, user, "Incorrect syntax, startlotto <time>")
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement