Saturday, May 18, 2013

How to enable special commands in amx admin mod

After Install Amxmodx in Your Server 

Connect Ur Server And Type in Conosl "amxmodmenu" (you must be admin)

Then Chose From Menu Plugins And Make Sure This Plugin On :
-Statsx
-CS Misc. Stats

Go Back To Menu And Chose Stats Configuration 
And Make Sure that Stats On :
Say /rankstats
Say /rank
Say /top15
And All Option You Want To Make It On


And About /rs Command 
That Are A New Plugin Click Here And Download It If You Dont Know How To Put it in ur Server Follow my steps :
1.Download resetscore.amxx , resetscore.sma
2.Copy it and put in "HLDS/cstrike/addons/amxmodx/plugins"
3.Paste This resetscore.amxx in New line in "HLDS/cstrike/addons/amxmodx/config/plugins.ini"

Restart Server Or Change Map And Good Luck (Remmber Any Plugin You Want to put in ur server Search his name HereAnd Follow My Steps 
Exit Menu And Good Luck 

Install a Counter-Strike 1.6 Server Non-Steam

Connect by SSH to your VPN.

-Change directory to "/usr"
Code:
cd /usr
-Make a dir named "hlds"(it can be anything you want, but i used hlds in this tutorial)
Code:
mkdir hlds
-Download and run hldsupdatetool:
Code:
cd /usr/hlds
wget http://download.fioriginal.ro/cs/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
if you receive an error about "uncompress" run this:
Code:
ln -s /usr/bin/gunzip /usr/bin/uncompress
./hldsupdatetool.bin

now run this until it shows "HLDS Installation up to date"
Code:
./steam -command update -game valve -dir .

Now we have an empy, steam only cs 1.6 server.

run this until it shows "HLDS Installation up to date"
Code:
./steam -command update -game cstrike -dir .

No Steam Engine Download

cd /usr/hlds/
wget http://download.freakz.ro/engine.v15.tgz
rm -rf engine_amd.so 
rm -rf engine_i486.so 
rm -rf engine_i686.so 
tar xfvz engine.v15.tgz


install amxmodx
Code:
cd /usr/hlds/cstrike/
wget http://download.fioriginal.ro/cs/amxmodx-1.8.1-base.tar.gz
tar xzvf amxmodx-1.8.1-base.tar.gz
wget http://download.fioriginal.ro/cs/amxmodx-1.8.1-cstrike.tar.gz
tar xzvf amxmodx-1.8.1-cstrike.tar.gz
install metamod
Code:
cd /usr/hlds/cstrike/addons/
mkdir metamod
cd /usr/hlds/cstrike/addons/metamod
wget http://download.fioriginal.ro/cs/metamod-1.19-linux.tar.gz
tar xzvf metamod-1.19-linux.tar.gz

now open in a ftp client the file cstrike/liblist.gam from your hlds directory and replace this
Code:
gamedll_linux "dlls/cs_i386.so"
with this
Code:
gamedll_linux "addons/metamod/metamod_i386.so"

install dproto
Code:
cd /usr/hlds/cstrike/
wget http://download.fioriginal.ro/cs/dproto-0.9.87.zip
unzip dproto-0.9.87.zip

Enter in a FTP client in the /usr/hlds/cstrike/addons/metamod folder, create a file named "plugins.ini" and put these lines:
Code:
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/dproto/dproto_i386.so

now you need to configure your host by editing the server.cfg file from cstrike folder

an example:
Code:
// Server Name
hostname "server name"
rcon_password "rcon password"

// Server Cvars
mp_friendlyfire "0"
mp_footsteps "1"
mp_autoteambalance "1"
mp_autokick "0"
mp_flashlight "0"
mp_tkpunish "1"
mp_forcecamera "0"
mp_limitteams "2"
mp_hostagepenalty "5"
mp_allowspectators "1"
mp_timelimit "35"
mp_chattime "10"
sv_cheats "0"
sv_aim "0"
sv_allowupload "1"
sv_allowdownload "1"
sv_maxspeed "320"
sv_gravity "800"
pausable "0"

// Round Cvars
mp_freezetime "0"
mp_roundtime "2.5"
mp_startmoney "800"
mp_c4timer "45"
mp_fraglimit "0"
mp_maxrounds "0"
mp_winlimit "0"
mp_buytime 0.35

// Bandwidth Rates
sv_rate "5500"
sv_minrate "0"
sv_maxrate "0"
sv_maxupdaterate "0"
sv_minupdaterate "10"
decalfrequency "10"
sv_unlag 1
sv_maxunlag .1
sys_ticrate 1000

// Server logging
log "on"
sv_logbans "0"
sv_logecho "1"
sv_logfile "1"
sv_log_onefile "0"
sv_logdownloadlist "1"
sv_consistency 0

// Internet Settings
sv_lan "0"
sv_region "255"
sv_contact "adresa de email"
sys_ticrate 2000
sv_downloadurl "http://download.fioriginal.ro/cs/resurse/beta/"

exec listip.cfg
exec dproto.cfg

// Masters
setmaster add 65.73.232.251
setmaster add 65.73.232.253
setmaster add 67.132.200.140
setmaster add 68.142.72.250:27010
setmaster add 72.165.61.136:27010
setmaster add 69.28.151.162:27010
setmaster add 69.28.151.162:27013
setmaster add 72.165.61.136:27013
setmaster add 72.165.61.151:27013
setmaster add 188.40.40.201:27010
setmaster add 213.239.209.221:27010

now edit amxx.cfg

to add admins you should edit the users.ini file.
At the end of the file, delete
Code:
loopback
and add your admins, one per line:
Code:
"nick" "pwd" "acces" "a"
Replace nick with the nickname of the player, pwd with the password and access with the access flags.

Access flags:
a - imunity - can't get lua kick\ban\slay\llama\gag ...etc
b - reserved slot - has a reserved slot in that case the server is full
c - access to amx_kick command
d - accesss at ban and unban
e - access at slap and slay
f - access at amx_map
g - access at cvars
h - access at configurations
i - access at chat commands ( amx_chat , amx_psay..)
j - access at vote commands (amx_vote, amx_votemap)
k - access at server password - can change it
l - access at rcon password and the rcon commands
z - simple player - WARNING! Don't use this for admins!

You can start the server in 3 ways:

First,
Code:
cd /usr/hlds/

1. Run the server in console:
Code:
./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust

OR

2.Run the server in background:
Code:
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust

or

3.The most comode way:

Create a file named 'startserver' and type:
Code:
#!/bin/bash ./hlds_run -game cstrike +ip your.external.ip +port 27015 -pingboost 1 -nomaster +maxplayers 22 +map de_dust &

Now run
Code:
./startserver