Raoul Posted January 4, 2007 Share Posted January 4, 2007 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 Link to comment
BetaDevil Posted January 4, 2007 Share Posted January 4, 2007 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 } Link to comment
lil Toady Posted January 4, 2007 Share Posted January 4, 2007 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 Link to comment
BetaDevil Posted January 4, 2007 Share Posted January 4, 2007 ah damn lil Toady, always if I make a simple script you know to make a better one Link to comment
ImJohnMclane Posted January 30, 2007 Share Posted January 30, 2007 ah damn lil Toady, always if I make a simple script you know to make a better one yeah he always do it. Link to comment
Aeron Posted January 31, 2007 Share Posted January 31, 2007 (edited) ah damn lil Toady, always if I make a simple script you know to make a better one yeah he always do it. 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 January 31, 2007 by Guest Link to comment
{CE}EyeZ Posted January 31, 2007 Share Posted January 31, 2007 What about like a !bannick >_< Link to comment
lil Toady Posted January 31, 2007 Share Posted January 31, 2007 bastid Aeron, i hate mirc 6.2 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.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 Link to comment
Aeron Posted January 31, 2007 Share Posted January 31, 2007 (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. Edited February 9, 2007 by Guest Link to comment
lil Toady Posted February 1, 2007 Share Posted February 1, 2007 hmm, tell me the alias to save a loaded script 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 Link to comment
DazzaJay Posted February 16, 2007 Share Posted February 16, 2007 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. Link to comment
2paq Posted March 16, 2007 Share Posted March 16, 2007 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 ... Link to comment
Scooby Posted March 16, 2007 Share Posted March 16, 2007 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 } Link to comment
Recommended Posts