you can shorten alot of things take the !slots for one
you can do it this way as well i added some flood control to it as well
if ($strip($1) == !slots && !$($+(%,slots,.,$nick),2)) {
set -u3 $+(%,slots,.,$nick) on
var %s1 = $gettok(OP|HOP|VOP,$r(1,3),124), %s2 = $gettok(OP|HOP|VOP,$r(1,3),124), %s3 = $gettok(OP|HOP|VOP,$r(1,3),124)
msg # %s1 %s2 %s3 $iif(%s1 == %s2 && %s2 == %s3,You Won!,You Lose!)
}
also you may want to go through and use local vars instead of all them global ones