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? The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008! The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members! [PS] Clan signups are open to the public! (Currently we are looking for Scripters) Click Here to join!
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 Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
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. The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008! The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members! [PS] Clan signups are open to the public! (Currently we are looking for Scripters) Click Here to join!
SanZoR Posted September 5, 2007 Posted September 5, 2007 Yeah, you can add so much of them as you want, just remember "||" Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
Recommended Posts