Sitemap

 - news
 - newsarchive
 - overview
 - faq
 - installation
 - help
 - commands
 - scripting
 - plugins
 - fun
 - the team
 - credits
 
 - AM online store
 - SourceForge
 

Download

 - Linux v.2.50.60
 - Win v.2.50.60
 - older versions
 - Inoffical version
 - tools
 

Support us


Support us

Community

 - forum
 - support
 - suggestions
 - mailinglists
 - irc channel
 

Choice


Get Firefox!
   


Well the new version of AdminMod (v2.50e) does work with FA. It just needs a beating.

Basic Installation
1. Install FA and AdminMod (duh)
2. Go to plugin.ini and comment out these plugins.
    dlls/plugin_spawn.amx
    dlls/plugin_hldsld_mapvote.amx
3. Read the scripting how-to or download the pre-made scripts.
    Or just tell admins not to use any voting commands.

Scripting
This section will tell you how to do change the script files for yourself (for later versions of AdminMod) as well as provide some pre-made scripts. To start off though I need to tell you what you are looking for and where to find it.

Scripting files are found in the Admin\scripting directory after you first extract AdminMod. The code we need to look at is in Admin\scripting\examples. This is where the original AdminMod scripts are found. To compile these scripts you only need to run compile_all.bat in the directory and when it is finished, all the compiled code is in the Admin\scripting\binaries. You just copy all those files into your halflife\firearms\dlls directory (overwriting the old compiled code).

Scripting files are basically pieces of code and then at the bottom of the files, commands are declared. What we are after is the declarations. This is the easiest way to disable voting because you dont really need to know how to code.

plugin_registercmd("admin_vsay","admin_vsay",ACCESS_SAY,"admin_vsay : Presents question as a vote.");
This is a declaration.


To stop that command from being declared, all we have to do is comment it out by putting // infront of the declaration. Like so:


//plugin_registercmd("admin_vsay","admin_vsay",ACCESS_SAY,"admin_vsay : Presents question as a vote.");


Thats all you have to do! Now you just have to comment out the rest of declarations. Here is the list of commands that I currently have commented out:

plugin_base.sma
 
 
 admin_vote_kick
 admin_vote_map
 admin_vsay


While I've been writing this how-to document I actually found another piece of scripting where it allows normal users with privelage rights of 1 to vote.
Well I have my normal users set to have privelage number of 0 (in server.cfg - default_access 0) so they can't request a vote. For even more security I also set up some of the options in my server.cfg file so it was basically impossible to win. I am currently trialing my new code modification to see if it works.

Plugins for AdminMod
Well if the plugin doesnt have any voting capabilities in it then you don't need to edit it. If it does then you should edit so you don't accidently screw up the respawning on your server. Just follow the same instructions but with the new commands.

Why/How does it work?
I removed dlls/plugin_spawn.amx cause that is the plugin that stops respawning. The rest is to stop voting because if you vote then it removes the ability to respawn as well.

It was a pain to figure out but it works and I have myself a nice Win32 FA server (for my clan practices).

Files
Scripting Source Files - 48.1 KB
Compiled Script Files - 29.9 KB

Written by: [ME]GutwrencheR


 

Poll

Would you like Admin Mod to support MS SQL Server?
Yes
No
What is MS SQL Server?
Why?!

Results

Affiliates

 - AScript
 - MetaMod
 - Adminmod.de
 

Sponsors


SourceForge.net Logo
 
 

Get Halflife Admin Mod at SourceForge.net. Fast, secure and Free Open Source software downloads.    CS Server     ||    

  [ Half-Life Admin Mod © Alfred Reynolds 2000-2025 ] - [ site design and programming by Jägermeister ]