13.02.2015, 15:16
[FS]Lottery / Keno
Gambling Minigame

Video
https://www.youtube.com/watch?v=P54x-BKnJwg
What is it?
This is a fun little singleplayer gambling minigame that allows your players to bet their money on a
series of numbers of their liking.
Before they start they have to select 10 numbers from 0 to 99 on their lottery-card, set their bet and
press the PLAY-button. The server will draw 10 random numbers
and the player will win a prize depending on the amount of matches and their bet.
This game is all textdraw-based. There is only 1 command (/lottery) to show the lottery-card, the rest is done by clickable textdraws.
Installation
- Download the lottery.pwn file and place it in your filterscripts-folder
- Add 'lottery' to the filterscripts-line in your server.cfg
- Optionally you can adjust some of the settings, like min/max bet, default jackpot and
reward-multipliers on top of the filterscript.
- The jackpot will be stored in a file (will be created automatically) you can change the path in the filterscript.
Bugs
- None known so far, although i haven't been able to test this will multiple players playing at the same time.
- Let me know if you found a bug or glitch.
Download
- Lottery.pwn (Mediafire)
- Lottery.pwn (Pastebin)
I've added commentary to almost every line in this script, explaining what
it does so you can even learn something from it.
- zcmd include is required.
Gambling Minigame

Video
https://www.youtube.com/watch?v=P54x-BKnJwg
What is it?
This is a fun little singleplayer gambling minigame that allows your players to bet their money on a
series of numbers of their liking.
Before they start they have to select 10 numbers from 0 to 99 on their lottery-card, set their bet and
press the PLAY-button. The server will draw 10 random numbers
and the player will win a prize depending on the amount of matches and their bet.
This game is all textdraw-based. There is only 1 command (/lottery) to show the lottery-card, the rest is done by clickable textdraws.
Installation
- Download the lottery.pwn file and place it in your filterscripts-folder
- Add 'lottery' to the filterscripts-line in your server.cfg
- Optionally you can adjust some of the settings, like min/max bet, default jackpot and
reward-multipliers on top of the filterscript.
- The jackpot will be stored in a file (will be created automatically) you can change the path in the filterscript.
Bugs
- None known so far, although i haven't been able to test this will multiple players playing at the same time.
- Let me know if you found a bug or glitch.
Download
- Lottery.pwn (Mediafire)
- Lottery.pwn (Pastebin)
I've added commentary to almost every line in this script, explaining what
it does so you can even learn something from it.

- zcmd include is required.