mIRC Homepage

Kick Counter Problems

Posted By: PunkDud3

Kick Counter Problems - 02/01/05 08:06 PM

Well a friend helped me make a kick counter and it looks like this:

Popups:
.KickBan (why):/kick # $$1 $$?="Reason:", KiCk: %kick.number | /ban $$1 2 | /inc %kick.number

Variables:
%kick.number 0

And so when someone is kicked it is shown like this:

* maLina_ was kicked by PunkDude (bye KiCk: 92)

But now i want to replace KiCk: 92 just with <92> and here the problem appears i tried doing something but look what happens:

* interfan was kicked by PunkDude (‹%kick.number›)

How could i make it work ? Please help.

And i have one more question:

How do i set that kick reasons are used from some .txt file ?

Thank you for all your help. I look forward to your answers.
Posted By: DrStein

Re: Troubles !!! - 02/01/05 08:18 PM

You have to use $+

Type < $+ %kick.counter $+ > not ‹%kick.number›.For more info search mirc help file for $+

To read the kick reasons from a txt file put the reasons you want in different lines of a txt file and use $read (again see mirc help for info)

.KickBan (Random reason):/kick # $$1 $read(reasons.txt) KiCk: < $+ %kick.number $+ > | /ban $$1 2 | /inc %kick.number
Posted By: tidy_trax

Re: Troubles !!! - 02/01/05 08:18 PM

Code:
menu nicklist {
  .KickBan:{ 
    ban -k $chan $$1 2 $iif($?="Reason:",$v1,$read($scriptdirkicks.txt,n)) $+(&lt;,%kick.number,&gt;)
    inc %kick.number
  }
}


Put it in remote (Alt-R), and make sure there is a file called "kicks.txt" in the same directory as the script.
Posted By: PunkDud3

Re: Troubles !!! - 02/01/05 08:30 PM

Hmm when i want to colour this <> into blue it doesn't work .

* motorka_m was kicked by PunkDude (Pofukam tebe in vse tvoje bivse ! <>)

Any ideas ?
Posted By: tidy_trax

Re: Troubles !!! - 02/01/05 08:36 PM

Code:
menu nicklist {
  .KickBan:{ 
    ban -k $chan $$1 2 $iif($?="Reason:",$v1,$read($scriptdirkicks.txt,n)) $+(12&lt;,%kick.number,12&gt;)
    inc %kick.number
  }
}
Posted By: PunkDud3

Re: Troubles !!! - 02/01/05 08:44 PM

Thank you so very much.
Posted By: tidy_trax

Re: Troubles !!! - 02/01/05 08:46 PM

Yw smile
© 2019 mIRC Discussion Forums