Admin_muppet <target> <time> <reason>
eaglec
Join Date: 2002-11-25 Member: 9948Members, Constellation
<div class="IPBDescription">adminmod plugin</div> The plugin_ns that <b>Lightning Blue</b> started has been growing.
It now contains <b>admin_muppet</b> which allows you to give a reason when you ban and displays to the client the reason, duration of the ban and contact information.
Attached is a sample output after this client named 'iamamuppet' was banned with the command:-
<b>admin_muppet iama 2 You are a muppet</b>
The plugin now resides at <a href='http://www.modns.org/forums/index.php?showtopic=48&st=0&' target='_blank'>Modns.org</a>
It now contains <b>admin_muppet</b> which allows you to give a reason when you ban and displays to the client the reason, duration of the ban and contact information.
Attached is a sample output after this client named 'iamamuppet' was banned with the command:-
<b>admin_muppet iama 2 You are a muppet</b>
The plugin now resides at <a href='http://www.modns.org/forums/index.php?showtopic=48&st=0&' target='_blank'>Modns.org</a>
Comments
You seem to have a knack with making things work, and I have no luck getting redirect scripts to work.
Why don't I have a myscripts directory on my Linux AM install?
(Never compiled a plugin before...) <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
Then download the PluginConverter, available from the AM site.
Anyone got a Win32 version already I could convert? Save me some messing about. I can host a Linux version afterwards then
btw - there was a small bug in admin_autoteam on version prior to today.
To fix edit line 90 to make AutoTeam all in lower case. ie AutoTeam, or dl the one I have just added to modns. Sorry.
/edit/ oops, I didn't fix autoteam, just knackered it in a new and interesting way. Sorry about that - now fixed and tested. ie. it works this time.
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->I = Nub
GOTO 1<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Is about it <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
Looks like something that I'll have to play around with on my server tonight.
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo-->
Anyway here it is - if someone has done the linux version of the latest version - new 10 minutes ago please be helpful and post a link to it here also <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->if(strlen(strTime) != 0) BanTime = strtonum(strTime);<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
To both remove a compare, and at the same time be certain of showing a number of minutes on the ban notification screen? At the moment if no number of minutes is specified, it just says 'Ban duration will be minutes. (0 = permanent)', which could confuse some people.
//nope didn't seem to work and didnt seem to be any point.. The idea of admin_muppet is for the server op to add 3 variables, Name, Time AND Reason. Leave any of that information out and they might as well use admin_ban. If the time is left blank then the reason cannot be given...
If I've got some extra time in class, probably wouldn't be too hard to include things like abbreviated interval predefines (meaning, could just type 'admin_muppet Idiot 3d4h72m You need to cool off', and have him banned for 4632 minutes). As noted, this is dependent upon it actually being C or C++.
1. This is an adminmod script, not a metamod pluggin
2. It's C like but its actually modified 'Small'. <a href='http://www.ravenousbugblatterbeast.pwp.blueyonder.co.uk/Script/' target='_blank'>usefull link</a>
<!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
//edit // as I have stated before I have no experience or skill in any form of coding programming or scripting. My speciality is in 'making stuff work'.
//nope didn't seem to work and didnt seem to be any point.. The idea of admin_muppet is for the server op to add 3 variables, Name, Time AND Reason. Leave any of that information out and they might as well use admin_ban. If the time is left blank then the reason cannot be given... <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Actually, I took your <b>admin_muppet</b> code, changed it to <b>admin_ban</b>, and replaced the default <b>admin_ban</b> code in the <b>plugin_base</b> with your code, and recompiled. <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo--> The only thing we lost was <b>admin_banip</b>, not that big of a deal.
We really like the on screen thing with the reason and the contact info, but I didn't want my admins to have to remember two commands. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
Right now, if you use the command like <b>admin_ban lamer</b>, it functions just as the default <b>admin_ban</b> does, gives them a perm ban and writes it to the banned.cfg, but shows <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->You have been banned for Minutes.<!--c2--></td></tr></table><span class='postcolor'><!--ec2--> (Note the space).
<b>admin_ban lamer 0</b> shows <i>You have been banned for 0 Minutes.</i> like it should.
I can't code well either, but yeah, making stuff work is fun, I like to tinker <!--emo&::lerk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/lerk.gif' border='0' style='vertical-align:middle' alt='lerk.gif'><!--endemo-->