Guest User

Untitled

a guest
Mar 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.74 KB | None | 0 0
  1. 20:25:37 @Slide alright so ive got a trigger thing that reads from a text file
  2. 20:25:41  -`@: ok
  3. 20:25:52 @Slide is there a way to make it only work once every half hour or
  4.                 something
  5. 20:26:08 @Slide or, even better, to make it only work properly once every half
  6.                 hour and kickban the rest of the time
  7.  
  8.  
  9.  
  10. on *:text:*:#:{
  11.     if ($1 == !whatever) {
  12.  
  13.         ;check to see if the time variable is set
  14.         if (%z0r == $null) {
  15.             ;if not set, then make it $ctime and kick
  16.             %z0r = $ctime
  17.             .kick $chan $nick $read(file.txt)
  18.         }
  19.  
  20.         ;if time elapsed is >30min, kick; else kickban
  21.         if ($calc($ctime - %z0r) >= 1800) {
  22.             .kick $chan $nick $read(file.txt)
  23.         }
  24.         else {
  25.             .ban -k $chan $nick $read(file.txt)
  26.         }
  27.     }
  28. }
Add Comment
Please, Sign In to add comment