You don't have to set any of the options if you don't want to, the defaults are you don't part if you get shot and you are a male. I saw another roulette game where there's a bot and people can play through that, this is for yourself. You have about a 17% chance of losing.
Edit: Now, the snippet can be used by someone else. !roulette for someone else to use. Please note that by default remote roulette is off, so you have to turn it on for others to be able to use it. Also, if they play remote roulette, it will follow your parting settings, so if they lose and part is on it will kick them (assuming you have ops), and if they lose and part is off, it won't kick them.
Roulette {
if (%mof == $null) set %mof male
if (%nick == $null) set %nick $me
if (%nick != $null) && (%remoteroulette == on)
%nick puts a gun to %mof head.
timer 1 1 msg $chan There are 6 spaces. One has a bullet in it, the other five are empty.
%nick pulls the trigger...
set %resultr $rand(1,6)
if (%resultr == 1) timer 1 1 msg $chan Click!
if (%resultr == 2) timer 1 1 msg $chan Click!
if (%resultr == 3) timer 1 1 msg $chan Click!
if (%resultr == 4) timer 1 1 msg $chan Click!
if (%resultr == 5) timer 1 1 msg $chan Click!
if (%resultr == 6) {
timer 1 1 msg $chan Bang!
if (%dead == leave) {
if (%nick == $me) part
else kick %nick $chan
}
}
unset %nick
}
menu * {
Roulette
.Play
.Refer to self as male: set %mof his
.Refer to self as female: set %mof her
.Part if shot: set %dead leave
.Don't part if shot: unset %dead
.Turn On Remote Roulette: set %remoteroulette on
.Turn Off Remote Roulette: unset %remoteroulette
}
on *:Text:!roulette:#:{
set %nick $nick
roulette
}