Guest User

Untitled

a guest
Jan 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. on 1:TEXT:!sub*:#:{
  2. if ($readini(subs.ini,$nick,admin)) {
  3. notice $nick You are already listed as a Sub.
  4. }
  5. else {
  6. if ($2) && ($3) {
  7. writeini subs.ini $nick player $nick
  8. writeini subs.ini $nick Game $2
  9. writeini subs.ini $nick timestart $3
  10. writeini subs.ini $nick timeend $4
  11. notice $nick You have been listed as a sub. Please use !remsub once you are subbing for a team!
  12. }
  13. }
  14. }
  15.  
  16. on 1:TEXT:!listsubs:#clannies: {
  17. var %i = 1
  18. while (%i <= $ini(matches.ini,0) ) {
  19. msg $chan Player $+ : $readini(subs.ini,$ini(subs.ini,%i),player) Game $+ : $readini(subs.ini,$ini(subs.ini,%i),Game) Time $+ : $readini(subs.ini,$ini(subs.ini,%i),timestart) $+ - $+ $readini(subs.ini,$ini(subs.ini,%i),timeend)
  20.  
  21.  
  22. inc %i
  23. }
  24. }
  25.  
  26.  
  27. on 1:TEXT:!remsub:#clannies:{
  28. if ($readini(subs.ini,$nick,player)) {
  29. remini subs.ini $nick
  30. notice $nick You have been removed from the Subs.
  31. }
  32. else {
  33. notice $nick You are not currently listed as a Sub.
  34. }
  35. }
Add Comment
Please, Sign In to add comment