An Adminmod Plugin For Ns!
Lightning_Blue
Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
<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.
<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.
Comments
Nice <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.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.
please
Sorry, no can do.
I think AMX is ****. Go code it yourself.
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.
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-->
<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?
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-->
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-->
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!! //
thats bull.
its harder to config amx then adminmod.
Adminmod always work.
Adminmod quit simple too.
But AMX better
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!!!//
Commands are
amx_marine
amx_alien
amx_readyroom
amx_random
It's not tested either so it might not work 100%
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.
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.
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.
... 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.
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-->
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-->
//edit//
File removed, see update below //
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!!