Raised This Month: $12 Target: $400
 3% 

How to set up Admin, and Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-23-2005 , 20:37   How to set up Admin, and Plugins
Reply With Quote #1

UPDATED*: Included tutorial for modules.

NOTE*: This is mainly for those people that just don't get the doc, and for those of you who haven't looked at the Doc yet, go Here


Installing Plugins:


1. Download the .sma or source code. We'll call this new plugin "New" Save it into the scripting folder, under amxmodx. addons/amxmodx/scripting

2. Run the Compiler, and copy the newly compiled "New.amxx" file in "compiled" which is a sub-folder in "scripting".

3. Paste New.amxx in the "plugins" folder, which is under amxmodx/plugins.

4. Now go to the "configs" folder, and open the file named "plugins".
It should look something like this:

Code:
; AMX Mod X plugins 

; Admin Base - Always one has to be activated 
admin.amxx      ; admin base (required for any admin-related) 
;admin_sql.amxx      ; admin base - SQL version (comment admin.amxx) 

; Basic 
admincmd.amxx      ; basic admin console commands 
adminhelp.amxx      ; help command for admin console commands 
adminslots.amxx      ; slot reservation 
multilingual.amxx   ; Multi-Lingual management 

; Menus 
menufront.amxx      ; front-end for admin menus 
cmdmenu.amxx      ; command menu (speech, settings) 
plmenu.amxx      ; players menu (kick, ban, client cmds.) 
telemenu.amxx      ; teleport menu (Fun Module required!) 
mapsmenu.amxx      ; maps menu (vote, changelevel) 

; Chat / Messages 
adminchat.amxx      ; console chat commands 
antiflood.amxx      ; prevent clients from chat-flooding the server 
scrollmsg.amxx      ; displays a scrolling message 
imessage.amxx      ; displays information messages 
adminvote.amxx      ; vote commands 

; Map related 
nextmap.amxx      ; displays next map in mapcycle 
mapchooser.amxx      ; allows to vote for next map 
timeleft.amxx      ; displays time left on map 

; Configuration 
pausecfg.amxx      ; allows to pause and unpause some plugins 
statscfg.amxx      ; allows to manage stats plugins via menu and commands 

; Counter-Strike 
restmenu.amxx      ; restrict weapons menu 
statsx.amxx      ; stats on death or round end (CSX Module required!) 
miscstats.amxx      ; bunch of events announcement for Counter-Strike 
stats_logging.amxx   ; weapons stats logging (CSX Module required!) 


; Custom - Add 3rd party plugins here
Now just add the line "New.amxx" under everything. So it should now look like this:

Code:
  
; AMX Mod X plugins 

; Admin Base - Always one has to be activated 
admin.amxx      ; admin base (required for any admin-related) 
;admin_sql.amxx      ; admin base - SQL version (comment admin.amxx) 

; Basic 
admincmd.amxx      ; basic admin console commands 
adminhelp.amxx      ; help command for admin console commands 
adminslots.amxx      ; slot reservation 
multilingual.amxx   ; Multi-Lingual management 

; Menus 
menufront.amxx      ; front-end for admin menus 
cmdmenu.amxx      ; command menu (speech, settings) 
plmenu.amxx      ; players menu (kick, ban, client cmds.) 
telemenu.amxx      ; teleport menu (Fun Module required!) 
mapsmenu.amxx      ; maps menu (vote, changelevel) 

; Chat / Messages 
adminchat.amxx      ; console chat commands 
antiflood.amxx      ; prevent clients from chat-flooding the server 
scrollmsg.amxx      ; displays a scrolling message 
imessage.amxx      ; displays information messages 
adminvote.amxx      ; vote commands 

; Map related 
nextmap.amxx      ; displays next map in mapcycle 
mapchooser.amxx      ; allows to vote for next map 
timeleft.amxx      ; displays time left on map 

; Configuration 
pausecfg.amxx      ; allows to pause and unpause some plugins 
statscfg.amxx      ; allows to manage stats plugins via menu and commands 

; Counter-Strike 
restmenu.amxx      ; restrict weapons menu 
statsx.amxx      ; stats on death or round end (CSX Module required!) 
miscstats.amxx      ; bunch of events announcement for Counter-Strike 
stats_logging.amxx   ; weapons stats logging (CSX Module required!) 


; Custom - Add 3rd party plugins here 
New.amxx

Enabling Modules:


Some plugins require a module to work. Sometimes you don't have them enabled, so the plugin doesn't work, then you come here and ask for help, well it's a common mistake. Follow these simple steps to enable the needed modules.

Okay, let's use the plugin "New.amxx" Let's say it requires the Fun Module. You can check by looking in the source code or the .sma file.
It's usually the first lines of code, here's what it might look like:

Code:
#include <amxmodx> #include <fun>

1. Browse to your modules.ini ( addons/amxmodx/configs/modules )
Open it up and it should look something like this:

Code:
; AMX Mod X Modules
; You can specify both linux & win32 modules here
; To enable a module, remove the semi-colon from the line

; ------------------------------
; Fun - provides extra functions
; ------------------------------
;fun_amxx_i386.so
;fun_amxx.dll
;fun_amxx_amd64.so

; ----------------------------------------------------
; Engine - provides engine functions core to Half-Life
; ----------------------------------------------------
engine_amxx_i386.so
engine_amxx.dll
engine_amxx_amd64.so

; ----------------------------------------------------------
; Fakemeta - provides a massive interface into the HL engine
; ----------------------------------------------------------
fakemeta_amxx_i386.so
fakemeta_amxx.dll
fakemeta_amxx_amd64.so

; -------------------------------------------
; Database Access - only enable one of these
; -------------------------------------------
; MySQL
mysql_amxx_i386.so
mysql_amxx.dll
mysql_amxx_amd64.so
; PostgreSQL
;pgsql_amxx_i386.so
;pgsql_amxx.dll
; Microsoft SQL
;mssql_amxx.dll

; ---------------------------------------------
; GeoIP - determines the country of ip adresses
; ---------------------------------------------
;geoip_amxx_i386.so
;geoip_amxx.dll
;geoip_amxx_amd64.so

; ------------------------------------
; Array - advanced arrays in scripting
; ------------------------------------
;array_amxx_i386.so
;array_amxx.dll
;array_amxx_amd64.so

; --------------------------------
; Sockets - network socket support
; --------------------------------
;sockets_amxx_i386.so
;sockets_amxx.dll
;sockets_amxx_amd64.so

; --------------------------
; Regular Expression support
; --------------------------
;regex_amxx_i386.so
;regex_amxx.dll
;regex_amxx_amd64.so
Notice the Fun Module is disabled, you can tell by the
Code:
;
In front of the files. To enable it simply remove the semi-colons. So your Fun Module should go from this:

Code:
; ------------------------------
; Fun - provides extra functions
; ------------------------------
;fun_amxx_i386.so
;fun_amxx.dll
;fun_amxx_amd64.so
To this:

Code:
; ------------------------------
; Fun - provides extra functions
; ------------------------------
fun_amxx_i386.so
fun_amxx.dll
fun_amxx_amd64.so
And voula, you're done.


Giving yourself Admin on a Listen Server:


NOTE*: This is to set up admin with your Steam ID.
To give yourself admin for a Listen Server:

1. Open up your "users.ini" which is located at addons/amxmodx/configs/users

It should looks something like this:

Code:
; Users configuration file 
; File location: $moddir/addons/amxx/configs/users.ini 

; Line starting with ; is a comment 

; Access flags: 
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands) 
; b - reservation (can join on reserved slots) 
; c - amx_kick command 
; d - amx_ban and amx_unban commands 
; e - amx_slay and amx_slap commands 
; f - amx_map command 
; g - amx_cvar command (not all cvars will be available) 
; h - amx_cfg command 
; i - amx_chat and other chat commands 
; j - amx_vote and other vote commands 
; k - access to sv_password cvar (by amx_cvar command) 
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command) 
; m - custom level A (for additional plugins) 
; n - custom level B 
; o - custom level C 
; p - custom level D 
; q - custom level E 
; r - custom level F 
; s - custom level G 
; t - custom level H 
; u - menu access 
; z - user (no admin) 

; Account flags: 
; a - disconnect player on invalid password 
; b - clan tag 
; c - this is steamid/wonid 
; d - this is ip 
; e - password is not checked (only name/ip/steamid needed) 

; Password: 
; Add to your autoexec.cfg: setinfo _pw "<password>" 
; Change _pw to the value of amx_password_field 

; Format of admin account: 
; <name|ip|steamid> <password> <access flags> <account flags> 

; Examples of admin accounts: 
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" 
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de" 
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"
2. Add the line *"STEAM_ID_PENDING" "" "abcdefghijklmnopqrstu" "ce"* (without the "*")
It should now look like this:

Code:
; Users configuration file 
; File location: $moddir/addons/amxx/configs/users.ini 

; Line starting with ; is a comment 

; Access flags: 
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands) 
; b - reservation (can join on reserved slots) 
; c - amx_kick command 
; d - amx_ban and amx_unban commands 
; e - amx_slay and amx_slap commands 
; f - amx_map command 
; g - amx_cvar command (not all cvars will be available) 
; h - amx_cfg command 
; i - amx_chat and other chat commands 
; j - amx_vote and other vote commands 
; k - access to sv_password cvar (by amx_cvar command) 
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command) 
; m - custom level A (for additional plugins) 
; n - custom level B 
; o - custom level C 
; p - custom level D 
; q - custom level E 
; r - custom level F 
; s - custom level G 
; t - custom level H 
; u - menu access 
; z - user (no admin) 

; Account flags: 
; a - disconnect player on invalid password 
; b - clan tag 
; c - this is steamid/wonid 
; d - this is ip 
; e - password is not checked (only name/ip/steamid needed) 

; Password: 
; Add to your autoexec.cfg: setinfo _pw "<password>" 
; Change _pw to the value of amx_password_field 

; Format of admin account: 
; <name|ip|steamid> <password> <access flags> <account flags> 

; Examples of admin accounts: 
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" 
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de" 
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a" 

"STEAM_ID_PENDING" "" "abcdefghijklmnopqrstu" "ce"
I add ";Me" so I can keep track, but you don't have to.
NOTE*: In order to activate your admin you must change your name in game, and change it back, every map.

To fix that, add this line to te users.ini
Code:
"loopback" "" "abcdefghijklmnopqrstu" "a"

Giving yourself Admin on a Dedicated Server:


To give yourself admin on a Deicated server, repeat all steps for Giving yourself Admin on a Listen Server.

2. Except, you need to change the "STEAM_ID_PENDING" to your actual Steam ID. So if your Steam ID was "STEAM_0:1:4624578".

Then you would have this at the bottom of your users.ini

Code:
"STEAM_0:1:4624578" "" "abcdefghijklmnopqrstu" "ce"
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 08-23-2005 , 20:48  
Reply With Quote #2

Good Good Good thinking

+1 for you
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-23-2005 , 20:52   Re: How to set up Admin, and Plugins
Reply With Quote #3

Quote:
Originally Posted by Kensai
1. Download the .sma or source code. We'll call this new plugin "New" Save it into the scripting folder, under amxmodx. addons/amxmodx/scripting

2. Run the Compiler, and copy the newly compiled "New.amxx" file in "compiled" which is a sub-folder in "scripting".
I would suggest, *especially* for people that are new, to skip these two steps and instead just use the "Get Plugin" link each of the plugin's threads.

Save telling people how to compile them until such a need actually comes up. I found it to be the rare case that I needed to do it myself.

Just my opinion.
Brad is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-23-2005 , 21:13  
Reply With Quote #4

Quote:
Originally Posted by bizzybone
Good Good Good thinking

+1 for you
Ty ty.

Quote:
Originally Posted by Brad_Jones
Quote:
Originally Posted by Kensai
1. Download the .sma or source code. We'll call this new plugin "New" Save it into the scripting folder, under amxmodx. addons/amxmodx/scripting

2. Run the Compiler, and copy the newly compiled "New.amxx" file in "compiled" which is a sub-folder in "scripting".

I would suggest, *especially* for people that are new, to skip these two steps and instead just use the "Get Plugin" link each of the plugin's threads.

Save telling people how to compile them until such a need actually comes up. I found it to be the rare case that I needed to do it myself.

Just my opinion.
I'll keep that in mind as a shortcut.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 08-24-2005 , 02:25  
Reply With Quote #5

that's the 3rd manual in 1 month or so..
I can tellyou there is no point in making it
altough your intensions are good ..
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 08-24-2005 , 03:08  
Reply With Quote #6

Very clear and easy to follow instructions there man. The problem is 1 nobody will read it they will just post as always, like with the 10 "help I don't have admin on my own server" every single day without trying to search for this first and 2 people are seriously stupid. Plain stupid.

A few days ago I was helping someone with a plugin and it simply would not work. I compiled the shit myself and tested it on my server and it works fine. Well this idiot used to run a server from his own computer and instead of uploading it to the SERVERS addons/amx etc he was placing it in his own addons folder on his machine expecting it to work on his newly rented server. Yes, this is true, and no, this isn't the dumbest thing I have seen.
__________________
Dr_Knuckles is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-24-2005 , 19:03  
Reply With Quote #7

Quote:
Originally Posted by Dr_Knuckles
Very clear and easy to follow instructions there man. The problem is 1 nobody will read it they will just post as always, like with the 10 "help I don't have admin on my own server" every single day without trying to search for this first and 2 people are seriously stupid. Plain stupid.

A few days ago I was helping someone with a plugin and it simply would not work. I compiled the shit myself and tested it on my server and it works fine. Well this idiot used to run a server from his own computer and instead of uploading it to the SERVERS addons/amx etc he was placing it in his own addons folder on his machine expecting it to work on his newly rented server. Yes, this is true, and no, this isn't the dumbest thing I have seen.
Lmao.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-24-2005 , 19:38  
Reply With Quote #8

i have made some guides they were trashed because we have a doc for this
__________________
- Bye bye!
nightscreem is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-24-2005 , 19:58  
Reply With Quote #9

Some people are too stupid to use the doc, though. I don't know how many people some of us have told to go to the Doc, only for them to come back, saying "imtried it but its too confusing!" Or "I'm too noobish to understand this stuff"
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Zanmato
Junior Member
Join Date: Aug 2005
Old 08-25-2005 , 01:36  
Reply With Quote #10

I downloaded that amx admin-all-in-one thing and did what you said, but when I made my listen server some commands said I do not have access to them...

Why...?
Zanmato is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode