Advertisement
Majeye

mIRC - !raffle (number 1-100 giveaway)

Mar 29th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.49 KB | None | 0 0
  1. on *:TEXT:!raffle:#:{
  2.   if ($nick == $mid(#,2)) {
  3.     set %raffle $rand(1,100)
  4.     msg $chan /me First person to guess the number between 1 and 100 wins!
  5.   }
  6.   else { msg $chan $upper($nick), this command is only available to the streamer. }
  7. }
  8.  
  9.  
  10. on *:text:*:#: {
  11.   if ($1- == %raffle) {
  12.     msg $chan WE HAVE A WINNER  
  13.     msg $chan /me The Winner is $nick with the number %raffle $+ !!!!!!
  14.     unset %raffle
  15.     .timerraffle 1 2 msg $chan CONGRATULATIONS $nick !
  16.   }
  17.   else { }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement