An Adminmod Plugin For Ns!

Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
edited August 2003 in General Server Discussion
<div class="IPBDescription">Contains NS specific commands.</div> Simple plugin, does three things:


<b>admin_marine <i><target></i></b> Changes target to the marines.

<b>admin_alien <i><target></b></i> Changes target to the aliens.

<b>admin_tournament <i><1 or 0></b></i> Sets the mp_tournamentmode cvar.


The team change will take effect no matter if you are in the readyroom, specing, or on a team. allow_client_exec must be set to 1, or else only the tourny mode function will work.

Zip attached with source, and complied linux and win32 binaries. Teamchange access defaults to 8192 and Tournymode access defaults to 4.

Please post problems and suggestions in this thread.
«1

Comments

  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    edited August 2003
    Might be nice if it would have attached the file on the first post like I asked <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • JezpuhJezpuh Join Date: 2003-04-03 Member: 15157Banned
    You nublar <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->

    Nice <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • BOZOBOZO Join Date: 2002-11-02 Member: 3973Members, Constellation, Reinforced - Supporter, Reinforced - Shadow
    <!--QuoteBegin--JezPuh+Aug 13 2003, 04:44 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (JezPuh @ Aug 13 2003, 04:44 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> You nublar <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->

    Nice <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    LB is uber nub <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->. Anyway, great plugin LB, will make Ready Roomers easier to deal with now.
  • cgountaniscgountanis Join Date: 2003-08-10 Member: 19314Members, Reinforced - Gold
    now make amx since admin is ****!

    please
  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    <!--QuoteBegin--cgountanis+Aug 13 2003, 09:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cgountanis @ Aug 13 2003, 09:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> now make amx since admin is ****! <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Sorry, no can do.

    I think AMX is ****. Go code it yourself.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--Lightning Blue+Aug 13 2003, 08:21 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Lightning Blue @ Aug 13 2003, 08:21 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--cgountanis+Aug 13 2003, 09:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cgountanis @ Aug 13 2003, 09:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> now make amx since admin is ****! <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Sorry, no can do.

    I think AMX is ****. Go code it yourself. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    yes, AMX was an attempt to bring satan to life.
  • LazerLazer Join Date: 2003-03-11 Member: 14406Members, Contributor, Constellation, NS2 Playtester
    Agreed, AMX is ****. Adminmod is so much more customizable.
  • DEADscottDEADscott Join Date: 2003-03-29 Member: 15022Members, Constellation
    Sweet, very usefull. Thank you.
  • ArkaineArkaine Join Date: 2002-07-12 Member: 914Members
    edited August 2003
    <!--QuoteBegin--Lazer+Aug 14 2003, 10:25 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Lazer @ Aug 14 2003, 10:25 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Agreed, AMX is ****. Adminmod is so much more customizable. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Well...I wouldn't say <i>that</i>, but it's certainly <i>easier</i> to. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    just giving this a little bump.
  • SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
  • DEADscottDEADscott Join Date: 2003-03-29 Member: 15022Members, Constellation
    AMX is for ServerOps who cant handle ADMINMOD. Ive been using this plugin for 2 weeks now, no complaints, works fine. Thanks again!
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    <!--QuoteBegin--Lightning Blue+Aug 13 2003, 04:31 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Lightning Blue @ Aug 13 2003, 04:31 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <b>admin_marine <i><target></i></b> Changes target to the marines.

    <b>admin_alien <i><target></b></i> Changes target to the aliens.

    <b>admin_tournament <i><1 or 0></b></i> Sets the mp_tournamentmode cvar.
    <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    I am horribly lazy, so lazy in fact that I find admin_marine or admin_tournament too long to type.

    Can I alias these commands to more easily typed ones?

    Also is 'target' wonid, name, connection number or any of those?
  • SillyGooseSillyGoose Join Date: 2003-03-16 Member: 14572Members, Constellation
    good job LB, Im gonna install this on my server tommorow <!--emo&::marine::--><img src='http://www.unknownworlds.com/forums/html/emoticons/marine.gif' border='0' style='vertical-align:middle' alt='marine.gif'><!--endemo-->
  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    I believe target can be Name, Wonid, connection number and even IP address (not sure on the last one).

    eaglec, if you want custom, PM me with what you want, what access levels, and what OS and I'll whip you up a copy <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    thanks LB, but it's short enough that even I can understand it so I might get my hands dirty with the source [shock, horror] <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->

    It's a good plugin and if I get stuck I'll give you a call to bail me out <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
  • MasterShakeMasterShake Join Date: 2003-04-20 Member: 15699Members
    Why must every topic in this forum turn into an adminmod/amx flame fest? I mean really, why don't we all just shut up, uninstall both, and have an admin on every server 24/7 with rcon access, complete knowledge of every cvar and command, and fast fingers.
  • UnknownUnknown Join Date: 1970-01-01 Member:
    edited August 2003
    Dont be a mod hater, I use admin mod for my server, and I love it. Besides, I'm to lazy to learn all the rcon commands. Call me a noob if you wish, but Admin mod suits my tastes <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited August 2003
    OK, I dont want to hear any more adminmod vs amx posts in this topic. Think about it it's really not fair on LB who put all the work in to come up with this mod for those admins who do. Anyway back on topic:-

    LB, as I mentioned I am lazy but I had to admit shortening admin_marine any more would just make no sense so I left admin_marine and admin_alien but changed admin_tournament to admin_match because I can never remember how to spell tournament. ::blush::

    Anyways I also added <b>admin_F4 <target></b> for when you just want them to drop to the ready room and <b>admin_autoteam</b> which doesn't require parameters and sends all players including admins to random team assignment while printing <b><span style='color:blue'>"Random-o-tron Team assignment Activated"</span> </b>in nice pretty blue letters.

    The last change I made was to change the admin access level of the admin_team, admin_f4 and admin_autoteam commands to 128. The same level as admin_kick. So admins of a lower level can still fix the team balance bug and force ready roomers to join a random team.

    Well if I think of anything else I'll let you know. Attached is my butchered source, please let me know if I've stuffed something up or if you find bugs. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    // edit attachement removed : the one two posts down is better!! //
  • The_MAzTerThe_MAzTer Join Date: 2003-01-04 Member: 11784Members, Constellation
    <!--QuoteBegin--{DEAD}scott+Aug 25 2003, 07:16 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ({DEAD}scott @ Aug 25 2003, 07:16 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> AMX is for ServerOps who cant handle ADMINMOD. Ive been using this plugin for 2 weeks now, no complaints, works fine. Thanks again! <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    thats bull.

    its harder to config amx then adminmod.

    Adminmod always work.

    Adminmod quit simple too.

    But AMX better
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited August 2003
    OK, well I found that the nifty blue text doesnt display on peoples screens because they've just been forced into a tam and hence their screens are redrawn. The fix is either to send the command twice with a delay in between or compile the new source attached below which has a built in delay. Admitedly the warning coms after the people are transported into teams but thats just tough luck <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->

    Are there any more features that could go in this plugin? I was thinking admin_balance might be a nice one - a quick one shot deal to balance the teams. Although I think that one's out of my depth. Lightening Blue, back to you <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->

    <b>admin_marine
    admin_alien
    admin_f4
    admin_autoteam
    admin_match</b>

    //edit - attachement removed there's an update below!!!//
  • EvilGrinEvilGrin Join Date: 2002-11-04 Member: 6851Members
    Heres the AMX version of this plugin. Its also got a half assed attempt at teambalancing which you should ignore and disable for the time being. (it doesn't work very well).

    Commands are

    amx_marine
    amx_alien
    amx_readyroom
    amx_random

    It's not tested either so it might not work 100%
  • lyndaklyndak God Join Date: 2002-11-13 Member: 8419Members, Constellation
    <!--QuoteBegin--[WHO]Them+Aug 14 2003, 09:50 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Aug 14 2003, 09:50 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--Lightning Blue+Aug 13 2003, 08:21 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Lightning Blue @ Aug 13 2003, 08:21 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--cgountanis+Aug 13 2003, 09:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cgountanis @ Aug 13 2003, 09:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> now make amx since admin is ****! <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Sorry, no can do.

    I think AMX is ****. Go code it yourself. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    yes, AMX was an attempt to bring satan to life. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Oh how right you are, Them.
  • ZdroneZdrone Join Date: 2002-11-02 Member: 3914Members, Constellation
    <!--QuoteBegin--eaglec+Aug 26 2003, 01:33 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (eaglec @ Aug 26 2003, 01:33 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    Also is 'target' wonid, name, connection number or any of those? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    A suggestion (just chose your message to tag along...):

    Get admin_point. <a href='http://www.adminmod.org/index.php?go=ascript/plugin#3698584946' target='_blank'>http://www.adminmod.org/index.php?go=ascri...ugin#3698584946</a>

    Basically, bind a key to a command, look at the person you want to execute a command on and voila! Bitchslaps all around!

    Be carefull however, occasionally latency will cause you to run a command on someone else as they run into view. It is quite convenient however.
  • MMZTrellMMZTrell Join Date: 2002-12-18 Member: 11036Members
    Sorry about this guys, but, I would like to see this in AMX for a number of reasons.

    1) I run several servers all running Redhat AS 2.1 due to the stablity.
    2) I use to use Adminmod and like it, however, everytime there is a new feature to a mod, or metamod or anything else, it seems I have to wait and wait for the Adminmod team to get it to work on certian versions of linux <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> [could it be because they code it in winblows first <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> ]
    3) AMX has some limitations I agree however in my situation and my Clans, it is the best option I have.

    I would really like to use this plugin as I hate people that will wait in the RR to stack the teams and or unbalance them.

    I'm would like to help with this however I'm not a coder :/
    Now systems adminsitration <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> thats a different story.

    Thanks.
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited August 2003
    <!--QuoteBegin--MMZ>Trell+Aug 28 2003, 10:52 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (MMZ>Trell @ Aug 28 2003, 10:52 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->... but, I would like to see this in AMX for a number of reasons. ...
    ... it seems I have to wait and wait for the Adminmod team to get it to work on certian versions of linux ...
    ... I'm not a coder :/
    Now systems adminsitration <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> thats a different story.
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    OK, as a fellow system admin you'll know how anoying it is when a user doesnt first read the writing in front of their face <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->

    1st EvilGrin supplied an AMX version of the mod (2 posts above yours)
    2nd Both myself and LighningBlue suplied the source so you can easily compile for linux.
  • MMZTrellMMZTrell Join Date: 2002-12-18 Member: 11036Members
    eaglec, your right, some how I missed that post about the amx <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    After seeing again and looking else where, I see it now, I guess all the bs about Adminmod vs AMX got to me.
    There both good mods, and both have there weakness and strenghts.

    I never said anything about compiling it for linux, that I have no problems with, what I said I had a problem with was
    Adminmod on this version of Linux and in fact I have worked with daRope to get it working on one of the last versions
    for 1.04

    Anyway, re-reading always helps, thanks EvilGrin and I hope you get the team balance working <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • MMZ_TorakMMZ_Torak Join Date: 2002-11-02 Member: 3770Members
    /me pets trell

    I still love you man! <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited August 2003
    I have adjusted the way admin_autoteam works. I notices that the Rand-o-matic pretty notice still wasn't comming up because of the screen refresh so I put in a delay. Then I thought hang on why action then warning, so I have reversed the delay. You enter admin_autoteam and warning fades into view and 5 seconds later everybody who is not in a team gets auto assigned <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    //edit//
    File removed, see update below //
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    edited September 2003
    <b>Admin_Autoteam</b> now has access level equal to admin_rcon but <b>admin_random </b>has access level 128 and respects admin_immunity. They both warn in a similar manner with nice pretty blue text fading into the center of the screen and then assign players to a team 4-6 seconds later.

    Commands available
    <b>admin_marine
    admin_alien
    admin_f4
    admin_autoteam
    admin_random
    admin_match </b>

    Still thinking about admin_balance...

    /edit/ now at <a href='http://www.modns.org/' target='_blank'>http://www.modns.org/</a> - where I will keep it up to date!!
Sign In or Register to comment.