Jump to content

Name Kick


Raoul

Recommended Posts

Posted

How can i make that when someone joins my server with for example the name: Dick . He gets kicked, or if he/she changes his name in my server to "Dick" he gets kicked. Can someone make me such script please

:D:D:D

metroidsigcopypy6.jpg
Posted
on *:SIGNAL:mta.join: {
 if (dick isin $mta.nick($1,$2)) mta.kick $1 $2
 elseif (fuck isin $mta.nick($1,$2)) mta.kick $1 $2
}
on *:SIGNAL:mta.nick: {
 if (dick isin $mta.nick($1,$2)) mta.kick $1 $2
 elseif (fuck isin $mta.nick($1,$2)) mta.kick $1 $2
}

Posted

on *:SIGNAL:mta.join: {
 mta.nickcheck $1 $2
}
on *:SIGNAL:mta.nick: {
 mta.nickcheck $1 $2
}
alias mta.nickcheck {
 var %a = dick lol f*cker
 if ($findtok(%a,$mta.nick($1,$2),1,32)) {
   mta.text $1 $+(',$mta.nick($1,$2),') - forbidden nick
   mta.kick $1 $2
 }
}

see the 'var %a' line? you can add as much forbidden nicks as you want there, separate by space

Do not PM me, im not going to read it anyway.

  • 4 weeks later...
Posted (edited)
ah damn lil Toady, always if I make a simple script you know to make a better one :roll:

xD yeah he always do it. :lol::lol:

I wonder where Toady got that method from

>_>

<_<

me!

on *:SIGNAL:mta.join: {
 c $1 $2 $readini($mta.dir $+ $1.ini,n,$2,Nick $+ $readini($mta.dir $+ $1.ini,n,$2,Nicks))
}
on *:SIGNAL:mta.nick: {
 c $1 $2 $readini($mta.dir $+ $1.ini,n,$2,Nick $+ $readini($mta.dir $+ $1.ini,n,$2,Nicks))
}
alias -l c {
 var %a = dick lol f*cker
 if ($findtok(%a,$3,1,32)) {
   mta.text $1 $qt($3) - forbidden nick
   mta.kick $1 $2
 }
}

Optimized code (requires mIRC 6.2 or later) just to annoy Toady

(You can also remove the var %a = line and insert the words directly in $findtok, even better rifk)

Edited by Guest

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted

bastid Aeron, i hate mirc 6.2 :P 6.16 ftw!

REKINIZE,

on *:SIGNAL:mta.join: {
 mta.nickcheck $1 $2
}
on *:SIGNAL:mta.nick: {
 mta.nickcheck $1 $2
}
alias mta.nickcheck {
 if ($findtok(%forbiddennicks,$mta.nick($1,$2),1,32)) {
   mta.text $1 $+(',$mta.nick($1,$2),') - forbidden nick
   mta.kick $1 $2
 }
}
on *:SIGNAL:mta.command:{
 if ($3 == !bannick) {
   if (!$4) mta.msg $1 $2 Error - Syntax: $3 
   else {
     set %forbiddennicks %forbiddennicks $4
     mta.text $1 Nick $+(',$4,') banned.
   }
 }
 elseif ($3 == !unbannick) {
   if (!$4) mta.msg $1 $2 Error - Syntax: $3 
   else {
     var %a = %forbiddennicks
     set %forbiddennicks = $remtok(%forbiddennicks,$4,1,32)
     if (%a != %forbiddennicks) mta.text $1 Nick $+(',$4,') unbanned.
     else mta.text $1 Nick $+(',$4,') not banned.
   }
 }
}

well, thats not the way i use in my scripts but that would work too :P

P.S: you can make the same with the Aeron's code but that doesn't make sence and anyway you know who's the boss ;)of course i am

Do not PM me, im not going to read it anyway.

Posted (edited)

Toady, can you make a script that uses a timer to rewrite the script who triggered the timer that uses nothing else then the command given in the timer?

Aka (as for example):

1. Script runs:

on *:START: {
 !timer 1 1 *magic code*
 !remove $qt($script)
}

2. Timer starts + script gets removed

3. Timer ends does magic trick to write script:

on *:START: {
 !timer 1 1 *magic code*
 !remove $qt($script)
}

If you can do that then I'll will recognise your scripts. :D

Edited by Guest

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted

hmm, tell me the alias to save a loaded script :lol:

well to load its 'load -rs' to reload 'reload -rs' logical to think that to save it i should use 'save', but it wont work here :(

Do not PM me, im not going to read it anyway.

  • 2 weeks later...
Posted

i realy like this script idea, alltho i have no idea on how to install it.

can somone please point me in the right direction?

:::EDIT:::

dont worry, i guessed my way thru...

i just made a .txt file pasted it in there and renamed it forbiddennames.mrc and wala, it worked.

  • 1 month later...
Posted

It is possible to creation script that kick someone with to short nick?

For example kick player with nick: a

because you can't kick someone with that nick if he cheating ...

you write:

!kick a

and consol kick someone who has "a" in nick ...

www.2pac-site.go.pl - my site about 3D modeling

Website 2paq.go.pl MTA:SA Race Server PL 24/7 @ OG-server.net

blue2.png

Posted
It is possible to creation script that kick someone with to short nick?

For example kick player with nick: a

because you can't kick someone with that nick if he cheating ...

you write:

!kick a

and consol kick someone who has "a" in nick ...

i dont allow people with under 2 chars in my server,

on join/nickchange

if ($len($mta.nick($1,$2)) < 2) {
 mta.pm $1 $2 WARNING - INVALID NICKNAME!
 .timer 1 5 mta.kick $1 $2
}

ScoobySig.gif

[UVA]Scooby

Founder Of UVA - Ultimate Vice Assassins

http://www.uvaclan.com/

  • Recently Browsing   0 members

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