simple !kick game

By A_A on Aug 18, 2007

basically you type ?kick nick and they will be given 10 seconds to guess heads or tails, if they get it wrong they get kicked, a nice simple script for beginners to try and learn off

on *:TEXT:?kick *:#: {
  if (%headsortails == $null) {
    set -u10 %headsortails 1
    if ($2 ison $chan) && ($me isop $chan) {
      set %heads_or_tails_nick $nick   
      set %kicknick $2
      msg $chan $2 heads or tails u have 10 seconds or u will be kicked
      set %num $rand(1,2)
      if (%num == 1) { set %num heads }
      if (%num == 2) { set %num tails }
      .timer 1 10 /kick $chan %kicknick u took to long it was %num
    }
  }
}
on *:TEXT:*:#: {
  if ($nick == %kicknick) {
    if ($1 == %num) {
      msg $chan gratz $nick u win
      .timers off
      /kick $chan %heads_or_tails_nick
      unset %kicknick
      unset %heads_or_tails_nick
    }
    if ($1 != %num) {
      /kick $chan %kicknick u guessed wrong it was %num
      .timers off
      unset %kicknick
      unset %heads_or_tails_nick

    }
  }
}

Comments

Sign in to comment.
T012m3n7oR   -  Jan 24, 2008

it should be

on *:TEXT:?kick *:#: {
  if (%headsortails == $null) {
    set -u10 %headsortails 1
    if ($2 ison $chan) && ($me isop $chan) {
      set %heads_or_tails_nick $nick   
      set %kicknick $2
      msg $chan $2 heads or tails u have 10 seconds or u will be kicked
      set %num $rand(1,2)
      if (%num == 1) { set %num heads }
      if (%num == 2) { set %num tails }
      .timer 1 10 /kick $chan %kicknick u took to long it was %num
    }
  }
}
on *:TEXT:*:#: {
  if ($nick == %kicknick) {
    if ($1 == %num) {
      msg $chan gratz $nick u win
      .timers off
      unset %kicknick
      unset %heads_or_tails_nick
    }
    if ($1 != %num) {
      /kick $chan %kicknick u guessed wrong it was %num
      .timers off
      unset %kicknick
      unset %heads_or_tails_nick

    }
  }
}
 Respond  
chocolate_pie   -  Sep 23, 2007

There is somehting wrong...even if you win, you still get kicked.
FIX IT. Over all this is pretty fun ^.^

7/10

 Respond  
guest598594   -  Aug 22, 2007

if i got kicked from that id be pissed off

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.