DazzaJay Posted September 3, 2007 Posted September 3, 2007 Holla, il get straight to the point..... i found this code in PRS: if ($chr(96) isin %a) { mta.pm $1 $2 INVALID CHARACTERS IN NICK!! .timer 1 3 mta.kick $1 $2 } How do i add more invalid characters to it? From what i am seeing here: http://www.asciitable.com/ Character 96 is ` and im wanting to add other characters like ^ (character 94) (mainly cos im tired of retards joining with names like ^-^ and so on. Basically, i want to know what to change and how to code it so i can add how many i want to the script. Any ideas on what i have to do? Like would i have to Duplicate that entire section like this: if ($chr(96) isin %a) { mta.pm $1 $2 INVALID CHARACTERS IN NICK!! .timer 1 3 mta.kick $1 $2 } if ($chr(94) isin %a) { mta.pm $1 $2 INVALID CHARACTERS IN NICK!! .timer 1 3 mta.kick $1 $2 } And so on?
SanZoR Posted September 3, 2007 Posted September 3, 2007 This one: (Not 100% sure about working) if ($chr(96,94) isin %a) { mta.pm $1 $2 INVALID CHARACTERS IN NICK!! !.timer 1 3 mta.kick $1 $2 } And this one: (Works 100% sure) if ($chr(96) isin %a) || ($chr(94) isin %a) { mta.pm $1 $2 INVALID CHARACTERS IN NICK!! !.timer 1 3 mta.kick $1 $2 } I hope these helps
DazzaJay Posted September 3, 2007 Author Posted September 3, 2007 ($chr(96) isin %a) || ($chr(94) isin %a) || ($chr(94) isin %a) || ($chr(94) isin %a) || ($chr(94) isin %a) || ($chr(94) isin %a) (Except with different character numbers) would that be right for Lots of characters? --------------------------------------------------- Well, i tried it, all good Thanks man.
SanZoR Posted September 5, 2007 Posted September 5, 2007 Yeah, you can add so much of them as you want, just remember "||"
Recommended Posts