field33 Posted May 23, 2006 Share Posted May 23, 2006 Can anybody make a auto-nickban like if anybody is MTAPlayer. Can anybody help me? Link to comment
MrJax Posted May 23, 2006 Share Posted May 23, 2006 on *:SIGNAL:mta.join:{ if ($mta.name($1,$2) == MTAPlayer) mta.ban $1 $2 } Like that? Link to comment
field33 Posted May 24, 2006 Author Share Posted May 24, 2006 on *:SIGNAL:mta.join:{ if ($mta.name($1,$2) == MTAPlayer) mta.ban $1 $2 } Like that? Yes, thanks! Link to comment
Brophy Posted May 24, 2006 Share Posted May 24, 2006 isnt ban a little over the top? , you could give them a message to change there name and just kick em Link to comment
DEVIL-gtamp.net Posted May 24, 2006 Share Posted May 24, 2006 best way prob is to have when join player you have 30 seconds to change name or you will be kicked then after 30 seconds they are kicked Link to comment
damnet007 Posted May 27, 2006 Share Posted May 27, 2006 best thing to do is set up a list of names you don't want people to use, and save it into a file. then get a script to read the file and check if the name's banned on join. something like: on *:SIGNAL:mta.join:{ if $readini($rpg.dir $+ badnicks.ini,illegal,$mta.name($1,$2)) == 1 { mta.msg $1 $2 $mta.name($1,$2) is a forbidden name on this server, please change it via the options tab! mta.kick $1 $2 } } ... and then make a file called badnicks.ini and keep this as the content: [illegal] MTAPlayer=1 (other names)=1 ... the reason i put the =1 bit in was so that you could use the file for other stuff as well like if you made a script to allow/disallow the nickname etc. Link to comment
DEVIL-gtamp.net Posted May 28, 2006 Share Posted May 28, 2006 best thing to do is set up a list of names you don't want people to use, and save it into a file. then get a script to read the file and check if the name's banned on join. something like: on *:SIGNAL:mta.join:{ if $readini($rpg.dir $+ badnicks.ini,illegal,$mta.name($1,$2)) == 1 { mta.msg $1 $2 $mta.name($1,$2) is a forbidden name on this server, please change it via the options tab! mta.kick $1 $2 } } ... and then make a file called badnicks.ini and keep this as the content: [illegal] MTAPlayer=1 (other names)=1 ... the reason i put the =1 bit in was so that you could use the file for other stuff as well like if you made a script to allow/disallow the nickname etc. could you add a 30 second timer to that then it will be great Link to comment
damnet007 Posted May 28, 2006 Share Posted May 28, 2006 on *:SIGNAL:mta.join:{ if $readini($rpg.dir $+ badnicks.ini,illegal,$mta.name($1,$2)) == 1 { mta.msg $1 $2 $mta.name($1,$2) is a forbidden name on this server, please change it via the options tab! !.timer 1 30 mta.kick $1 $2 } } Link to comment
xGj Posted May 28, 2006 Share Posted May 28, 2006 isnt ban a little over the top? , you could give them a message to change there name and just kick em Quite the same result, if you scriptban the name MTAPlayer only then they would get kicked(+namebanned) from the server if they have that nick, if you kick them with a message its the same result. Link to comment
MrJax Posted May 28, 2006 Share Posted May 28, 2006 He thought he wanted to actually ban people with a certain nick, as did I. Easiest way is to list the names in a text file and use: on *:SIGNAL:mta.join:{ if ($read(bannednames.txt, s, $mta.name($1,$2))) { mta.msg $1 $2 $+(!.timerbannedname,$1,$2) 1 15 mta.kick $1 $2 } } on *:SIGNAL:mta.part:{ if ($timer($+(bannedname,$1,$2))) $+(!.timerbannedname,$1,$2) off } Link to comment
andeh Posted June 4, 2006 Share Posted June 4, 2006 yet another quality post from dan. Link to comment
Shib Posted June 4, 2006 Share Posted June 4, 2006 Don't start the flaming with me retard. I was testing something on the account, that's why I posted something small. You can't exactly criticize how I post, when you're the one who confuses people into thinking that you're speaking arabic. I've only been posting on this forum for about a week or so now, for the first time in quite a while. So god knows how you made up that bullshit that you posted. And also, if that's so, quote something that seems bs to you... [/end] Link to comment
Recommended Posts