This Command will let a user bet there in game money for a chance to get some back.
let %bet% = %args%[1]
if %bet% > 99 then goto 5
message %p% [LOTTERY] You must bet at least 100 dollars to use this.
exit
if %bet% < 1000000 then goto 8
message %p% [LOTTERY] You cant bet more then 1000000$!
exit
let %userbal% = playerbalance(%p%)
if %userbal% > %bet% then goto 13
if %userbal% = %bet% then goto 13
message %p% [LOTTERY] You cannot bet more then you have!
exit
let %betresult% = random(1, 100)
if %betresult% = 50 then goto 18
message %p% Sorry %p%, but your bet failed and you lost %bet%!
ascon /takemoney %p% %bet%
exit
let %gain% = %bet% + %bet%
let %online% = onlineplayers()
message %online% %p% JUST WON %gain% WITH /lottery
ascon /givemoney %p% %gain%
I Hope you use this change the random(1, 100) to increase or lower the odds of winning!
System make 100% by me!
Amlost posted this wrong lol
let %bet% = %args%[1]
if %bet% > 99 then goto 5
message %p% [LOTTERY] You must bet at least 100 dollars to use this.
exit
if %bet% < 1000000 then goto 8
message %p% [LOTTERY] You cant bet more then 1000000$!
exit
let %userbal% = playerbalance(%p%)
if %userbal% > %bet% then goto 13
if %userbal% = %bet% then goto 13
message %p% [LOTTERY] You cannot bet more then you have!
exit
let %betresult% = random(1, 100)
if %betresult% = 50 then goto 18
message %p% Sorry %p%, but your bet failed and you lost %bet%!
ascon /takemoney %p% %bet%
exit
let %gain% = %bet% + %bet%
let %online% = onlineplayers()
message %online% %p% JUST WON %gain% WITH /lottery
ascon /givemoney %p% %gain%
I Hope you use this change the random(1, 100) to increase or lower the odds of winning!
System make 100% by me!
Amlost posted this wrong lol