Jump to content

Adjusting PRS.


DazzaJay

Recommended Posts

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?

Link to comment

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 :P

Link to comment

($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.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...