Id: 2426; Nick: Laatee; Timestamp: 2007-12-07 17:01:18; Pasted as: mIRC
Description: n/a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
alias stoppoll { 
  if (%mby > %yes) && (%yes >= %no) { msg $chan Winner Teamcup with %mby votes | return }
  elseif (%yes > %mby) && (%no >= %mby) { msg $chan Winner Melee with %yes votes | return }
  elseif (%no > %mby) && (%mby >= %yes) { msg $chan Winner 1on1 with %no votes | return }  
  unset %yes | unset %no | unset %chan | unset %poll.question | unset %mby |
} 
 
on *:text:?startvote:#:{
  if ($nick isop $chan) {
    if ( %votetus == 1 ) { notice $nick Vote is already gone! }
    else { 
      set %votetus 1
      msg $chan $(%skin,3) Started vote! Vote for Melee with "vote1" for TeamCup with "vote2" for 1on1 "vote3" $(%skin,3)
      set %poll.question $(%skin,3) Started vote! Vote for Melee with "vote1" for 1on1 with "vote2" for Teamcup "vote3" $(%skin,3)
      .timer 1 1 msg $chan $(%skin,3) 60 seconds remaning $(%skin,3)
      .timer 1 11 msg $chan $(%skin,3) 50 seconds remaning $(%skin,3)
      .timer 1 21 msg $chan $(%skin,3) 40 seconds remaning $(%skin,3)
      .timer 1 31 msg $chan $(%skin,3) 30 seconds remaning $(%skin,3)
      .timer 1 41 msg $chan $(%skin,3) 20 seconds remaning $(%skin,3)
      .timer 1 51 msg $chan $(%skin,3) 10 seconds remaning $(%skin,3)
      .timer 1 60 msg $chan $(%skin,3) Vote is over $(%skin,3) | set %votetus 0
      .timer 1 61 msg $chan $(%skin,3) Votes: Melee %yes // 1on1: %no // Teamcup: %mby $(%skin,3)
      timer 1 62 
      set %chan # 
set %yes 0
set %mby 0
set %no 0
    }
  }
}
 
 
on *:text:?vote1:#:{
  if ($read(asd.txt,w,$nick)) { notice $nick $(%skin,3) You are already voted! $(%skin,3) }
  else {
    write asd.txt $nick
    inc %yes
    .timer 1 60 write -c $nick
    .timer 1 1 notice $nick $(%skin,3) You voted: Melee // Melee have %yes votes. $(%skin,3)
  }
}
 
on *:text:?vote2:#:{
  if ($read(asd.txt,w,$nick)) { notice $nick $(%skin,3) You are already voted! $(%skin,3) }
  else {
    write asd.txt $nick
    inc %mby
    .timer 1 60 write -c $nick
    .timer 1 1 notice $nick $(%skin,3) You voted: Team cup // Team cup have %mby votes. $(%skin,3)
  }
}
on *:text:?vote3:#:{
  if ($read(asd.txt,w,$nick)) { notice $nick $(%skin,3) You are already voted! $(%skin,3) }
  else {
    write asd.txt $nick
    inc %no
    .timer 1 60 write -c $nick
    .timer 1 1 notice $nick $(%skin,3) You voted: 1on1 // 1on1 have %no votes. $(%skin,3)
  }
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)
Nothing to see here.