Guest User

Untitled

a guest
Jan 5th, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.88 KB | None | 0 0
  1. on *:text:!bomb:#:{
  2.   set %bombtime $r(20,60)
  3.   msg $chan $nick has found a bomb! Quickly defuse the bomb by cutting the correct wire! Use !cut <wire> | msg $chan Wires: red, blue, green, black or pink
  4.   set %color $r(1,5)
  5.   if (%color == 1) { set %color red }
  6.   if (%color == 2) { set %color blue }
  7.   if (%color == 3) { set %color green }
  8.   if (%color == 4) { set %color black }
  9.   if (%color == 5) { set %color pink }
  10.   set %bombnick $nick
  11.   timerBomb 1 %bombtime kick $chan $nick BOOM!
  12.   timer 1 %bombtime unset %bombnick
  13. }
  14. on *:text:!cut *:#:{
  15.   if ($nick == %bombnick) {
  16.     if ($2 == %color) {
  17.       msg $chan You defused the bomb!
  18.       unset %bombnick
  19.       timerBomb off
  20.     }
  21.     if ($2 != %color) {
  22.       kick $chan $nick BOOM!
  23.       unset %bombnick
  24.       timerBomb off
  25.     }
  26.   }
  27.   if ($nick != %bombnick) {
  28.     msg $chan Only %bombnick can defuse the bomb!
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment