Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on 1:TEXT:!add*:#:{
- if ($readini(matches.ini,$nick,admin)) {
- notice $nick You already have a game on the bot
- }
- elseif ($3) && ($2) && ($4) && ($5) {
- if (!$timer(checkmatches)) { timercheckmatches 0 10 checkmatches }
- writeini matches.ini $nick admin $nick
- writeini matches.ini $nick clan $2
- writeini matches.ini $nick time $3
- writeini matches.ini $nick game $4
- writeini matches.ini $nick server $5
- notice $nick Your game has been added to the Bot. Please use !foundgame once you have a game!
- msg $chan 12,1-=0,1List of Teams Looking for Games $+: 2,1=-
- var %i = 1
- while (%i <= $ini(matches.ini,0) ) {
- 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)
- inc %i
- }
- else {
- notice $nick You entered an Invalid Syntax $+ . Correct Syntax $+ : !add (Clan) (Time) (Game) (Do You Have A Server? Yes/No)
- }
- }
- alias checkmatches {
- var %i = 1
- while (%i <= $ini(matches.ini,0) ) {
- if ($time(tt) == $remove($readini(matches.ini,$ini(matches.ini,%i),time),1,2,3,4,5,6,7,8,9,0)) {
- if ($time(h) > $remove($readini(matches.ini,$ini(matches.ini,%i),time),am,pm)) {
- notice $readini(matches.ini,$ini(matches.ini,%i),admin) Your game has expired.
- remini matches.ini $ini(matches.ini,%i)
- }
- }
- inc %i
- }
- }
- on 1:TEXT:!foundgame:#clannies:{
- if ($readini(matches.ini,$nick,admin)) {
- remini matches.ini $nick
- notice $nick Your game has been removed from the Bot.
- }
- else {
- notice $nick You don't have a game on the bot.
- }
- }
- on 1:PART:#clannies: {
- if ($readini(subs.ini,$nick,player)) {
- remini subs.ini $nick
- notice $nick You have been removed from the Subs.
- }
- }
Add Comment
Please, Sign In to add comment