Guest User

Untitled

a guest
Jan 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. on 1:TEXT:!add*:#:{
  2. if ($readini(matches.ini,$nick,admin)) {
  3. notice $nick You already have a game on the bot
  4. }
  5. elseif ($3) && ($2) && ($4) && ($5) {
  6. if (!$timer(checkmatches)) { timercheckmatches 0 10 checkmatches }
  7. writeini matches.ini $nick admin $nick
  8. writeini matches.ini $nick clan $2
  9. writeini matches.ini $nick time $3
  10. writeini matches.ini $nick game $4
  11. writeini matches.ini $nick server $5
  12. notice $nick Your game has been added to the Bot. Please use !foundgame once you have a game!
  13. msg $chan 12,1-=0,1List of Teams Looking for Games $+: 2,1=-
  14. var %i = 1
  15. while (%i <= $ini(matches.ini,0) ) {
  16. msg $chan Team $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),clan)  $+ $+ Time $+ : $+ $+ 4 $readini(matches.ini,$ini(matches.ini,%i),time)  Game $+ :4 $readini(matches.ini,$ini(matches.ini,%i),game)  $+ $+ Server $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),server)  $+ $+ Contact $+ : $+ 4 $readini(matches.ini,$ini(matches.ini,%i),admin)
  17. inc %i
  18.  
  19. }
  20.  
  21. else {
  22. notice $nick You entered an Invalid Syntax $+ . Correct Syntax $+ : !add (Clan) (Time) (Game) (Do You Have A Server? Yes/No)
  23. }
  24. }
  25.  
  26. alias checkmatches {
  27. var %i = 1
  28. while (%i <= $ini(matches.ini,0) ) {
  29. if ($time(tt) == $remove($readini(matches.ini,$ini(matches.ini,%i),time),1,2,3,4,5,6,7,8,9,0)) {
  30. if ($time(h) > $remove($readini(matches.ini,$ini(matches.ini,%i),time),am,pm)) {
  31. notice $readini(matches.ini,$ini(matches.ini,%i),admin) Your game has expired.
  32. remini matches.ini $ini(matches.ini,%i)
  33. }
  34.  
  35. }
  36. inc %i
  37. }
  38. }
  39.  
  40.  
  41.  
  42. on 1:TEXT:!foundgame:#clannies:{
  43. if ($readini(matches.ini,$nick,admin)) {
  44. remini matches.ini $nick
  45. notice $nick Your game has been removed from the Bot.
  46. }
  47. else {
  48. notice $nick You don't have a game on the bot.
  49. }
  50. }
  51. on 1:PART:#clannies: {
  52. if ($readini(subs.ini,$nick,player)) {
  53. remini subs.ini $nick
  54. notice $nick You have been removed from the Subs.
  55. }
  56. }
Add Comment
Please, Sign In to add comment