SRCDS - Mani Admin Mod Setup

From Www.FreeNerd.net

Jump to: navigation, search


This guide is provided for informational purposes only. If you choose to use this guide for anything more than information, you do so "At Your Own Risk".

Contents

SRCDS - Mani Admin Mod Setup

With recent updates to steam this guide is not longer up to date. I will update this guide soon. I got it working, but had to use beta version 1.2U and metamod

For in depth information on the Mani Admin mod, visit the official documentation site http://www.mani-admin-plugin.com/mani_admin_plugin/documentation/index.php/

Download and Extract the Mani Admin Mod files

  • Create a folder to store the .zip the file. It's a good idea keep a backup copy of the .zip on the server for easy re-installation of any files
mkdir /data/mani
  • Change into the directory before you download
cd /data/mani
  • Download the mod
wget http://www.mani-admin-plugin.com/mani_admin_plugin/v1_2_beta_s/mani_admin_plugin_v1_2_beta_s.zip
  • Allow all permissions for all users on the file
chmod 777 mani_admin_plugin_v1_2_beta_s.zip
  • Copy the .zip into the DOD:S directory
cp mani_admin_plugin_v1_2_beta_s.zip /data/srcds/dod/
  • Extract the files from the .zip
unzip mani_admin_plugin_v1_2_beta_s.zip
  • Remove the .zip file from your DOD:S directory
rm mani_admin_plugin_v1_2_beta_s.zip
  • You need to set the ownership of the new files to match the existing files. This also makes sure that the user the service is running as has full access to all files in the DOD:S directory
su -
chown -R <your user>:root /data/srcds/dod/
  • Switch back to user level permissions
exit

Setup and Configuration of the mod

  • We're nearly done, however the mod requires a .vdf file be copied into the /data/srcds/dod/addons directory. They include a tool for creating this and if you are using this setup for a game other than DOD:S, you will need to run CreateVDF.exe on a Windows PC or in Wine and select the correct game for your .vdf
  • Go to the addons folder
cd /data/srcds/dod/addons
  • Create the .vdf file
vi mani_admin_plugin.vdf
  • Paste in the following text and save the file
"Plugin"
{
"file" "../dod/addons/mani_admin_plugin"
}

Create an admin list

  • Change to the mani admin directory
cd /data/srcds/dod/cfg/mani_admin_plugin
  • Create the adminlist.txt file
vi adminlist.txt
  • The format for this file is very simple, just enter in the steam ID of those who you would like to have admin. If you wish to restrict admin access levels by user, you will need to read the details in the Mani Admin Plugin Document linked above. Adding a user here without restriction flags gives them full admin. I use the format below to add admins so I have a record of Steam ID's to players
STEAM_0:0:21233123     PlayerName
  • Restart your SRCDS service and the Mani Admin Mod should now be functioning.
  • To easily access the admin menu in your server, you'll want to bind a key to "admin" in the game console

This command is for the game console, not your linux server!!

bind <key> admin

Add admins via game console

provide rcon password

rcon_password <rconpass>

add player

rcon ma_client AddClient <playername>

add players steam ID

rcon ma_client AddSteam <playername> "STEAM_0:1:123456789"

add admin rights (you can read up on what rights these flags give, this is full permission)

rcon ma_client SetAFlag <playername> "+A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +a +admin +b +c +client +d +e +f +g +grav +i +k +l +m +o +p +pban +q +q2 +q3 +r +s +spray +t +v +w +x +y +z"

Set immunity flags (same as above, read up on these)

rcon ma_client SetIFlag CLIENTNAME "+a +afk +autojoin +b +c +d +e +f +g +grav +h +i +k +l +m +n +o +p +ping +q +r +s +t +u +v +w +x +y"

This allows you to add admins via the console live.