Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!votekick *:#ToontownFellowship,#Zedd, #bae: {
- set %kickchan $chan
- set %kicktime 40
- set %exceptions
- if (%voteon == on) {
- notice $nick A votekick is already taking place.
- }
- else {
- set %nick $$2
- set %voteon on
- if (%voteon == on) {
- .timer 1 %kicktime firetimer
- .timer 1 %kicktime set %voteon off
- .timer 1 %kicktime unset %voted
- .timer 1 %kicktime set %up 0
- .timer 1 %kicktime set %down 0
- set %voteon on
- msg %kickchan Voting to kick %nick has started. Type !yes or !no to vote.
- }
- else {
- notice $nick You need to be a channel operator to call a votekick.
- halt
- }
- }
- }
- on *:text:!yes:#ToontownFellowship,#Zedd,#bae: {
- if ($istok(%voted,$address,32)) {
- notice $nick You have already voted.
- halt
- }
- if (%voteon == off) {
- notice $nick Voting is currently off.
- halt
- }
- else {
- %voted = $addtok(%voted,$address,32)
- inc %up 1
- msg %kickchan Victim: %nick Yes: %up - No: %down
- }
- }
- on *:text:!no:#ToontownFellowship,#Zedd,#bae: {
- if ($istok(%voted,$address,32)) {
- notice $nick You have already voted.
- halt
- }
- if (%voteon == off) {
- notice $nick Voting is currently off.
- halt
- }
- if (%voteon == on) {
- %voted = $addtok(%voted,$address,32)
- inc %down 1
- msg %kickchan Victim: %nick Yes: %up - No: %down
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement