Guest User

Untitled

a guest
Jan 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. on *:TEXT:!SetOp*:*:{
  2. if ( $nick isop $chan || $nick ishop $chan ) {
  3. set %Op. [ $+ [ %EventNo ] ] 11,1[OP No. [ %EventNo ] ] [SET BY: [ $nick ] ] [OP: $2 ] 4,1 $+ $3-
  4. inc %EventNo
  5. notice $nick OP $2 has been added!
  6. }
  7. else {
  8. notice $nick You are not Simplicity Staff!
  9. }
  10. }
  11.  
  12.  
  13. on *:TEXT:!GetOps*:*:{
  14. var %count 1
  15. notice $nick 11,1S0,1implicity11,1O0,1perations 11,1L0,1ist
  16. while ( %count < %EventNo ) {
  17. notice $nick %Op. [ $+ [ %count ] ]
  18. inc %count
  19. }
  20. }
  21.  
  22. on *:TEXT:!DelOp*:*:{
  23. if ( $nick isop #simplicity ) {
  24. unset %Op. [ $+ [ $2 ] ]
  25. notice $nick You have removed the OP!
  26.  
  27. ; New Section Start
  28. var %i = $2, %lastEventIndex = $calc(%EventNo - 1)
  29. while (%i < %lastEventIndex) {
  30. set %op. [ $+ [ %i ] ] %op. [ $+ [ $calc(%i + 1) ] ]
  31. inc %i
  32. }
  33. unset %op. [ $+ [ %lastEventIndex ] ]
  34. ; New Section End
  35.  
  36. dec %EventNo
  37. }
  38. else {
  39. notice $nick 4,1 You are not a Simplicity Staff Member!
  40. }
  41. }
Add Comment
Please, Sign In to add comment