| CS&HalfLife | Admin |
CS_admin_text=ADMIN-MODとは?
 
internetのサーバーは、なんかゲーム中に赤い文字が出たり、入ろうとすると
空きがあるのに「メンバー用に確保されているので」と言われ断られたり
突然マップのボートの画面になったり。
サーバーの管理を楽にするために、また有効に行うためにADMIN-MODと呼ばれる
サーバー管理MODが存在するのです。
 
http://www.adminmod.org
に飛び、Linux v.2.50.26(2002年8月4日現在)
をクリックし、その中の
Full: halflife-admin-2.50.26.tgz
をダウンロードします。
容量は、数MBです。
 
ダウンロードしたら、早速Linuxにファイルを持っていきます。
場所は
/usr/local/games/halflife/hlds_l
です。
 
ここに持っていきましたら、おなじみの解凍コマンド
tar zxvf halflife-admin-2.50.07.tgz
で解凍します。解凍すると、「Admin」というフォルダーが現れるので
そこに入ります。
解凍が終わったら、インストールを行います。
 
Adminフォルダーの中にいることを確認した後
以下のコマンドを入力。
./install_admin cstrike
 
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
注意:もし、このとき
command not foundまたは、you do not have permission
などと表示された場合には、実行可能でないか、権限が無いかです。
前者の場合には、以下のコマンドを入力して、実行可能にしましょう。
chmod 777 ./install_admin
後者の場合には、suコマンドでrootになり、実行しましょう。
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
 
コマンドを実行すると以下の画面が表示されるはずです。
 
Adminmod Installation Script
Version 2.50d
 
This script will install Adminmod version 2.50d on your
system. It will ask you for the directory that you installed
the Half-Life server in. To accept defaults just press Return.
After the binaries are installed you should read the docu-
mentation and configure Adminmod before you use it for the
first time.
 
Shall I proceed with the installation? (y/n) [y] ?
 
まずは、yを入力して、リターン。
そうすると、
 
Please enter the directory where your HL server is installed.
[/usr/local/hlds_l]:
 
と表示されるので、そのままリターンでも大丈夫だとは思うのですが、念のため
/usr/local/games/halflife/hlds_l
と入力して、リターンを押しましょう。すると
 
Installing binaries and config files ...
Editing your liblist.gam file ...
The Admin Mod files have now been installed. It looks like you
install this version of Admin Mod for the first time. You will
have to edit your server.cfg
file in the directory /usr/local/hlds_l/cstrike
 
I can now add the necessary lines to your server.cfg file.
Edit the file afterwards to configure it to your needs.
Shall I add the Admin Mod lines to your server.cfg file? (y/n) [y]
 
と表示されるので、yを押してリターン。
 
それで
 
Congratulations, Admin Mod is now installed.
To configure it you should now edit your server.cfg file and
create users.ini, maps.ini, ips.ini, models.ini and wordlist files as
needed.
Follow the instructions in the documentation and check for more
infor- mation at the Admin Mod web site http://www.adminmod.org.
Enjoy!
 
と表示されれば、ADMIN-MODのインストールが完了です。
(実際の画面とはバージョンによって異なることがあります。)
早速、ADMIN-MODで何ができるか、やってみましょう。

まずは、いつも通りcsサーバーを起動
そして、Lanのマシーン等からサーバーに入りましょう。
ゲームに入ったら、console画面を出し
以下のコマンドを打ち込んでみましょう。
admin_timeleft(注意:_は=で出せます)
すると、マップチェンジまでの時間が表示されるではないですか!
次はadmin_versionと入力しましょう。
すると、なんと!ADMIN-MODのバージョンが表示されるます。
ここまでは、admin-modいらないのでは?と思いますが、
実は、画面の中央上部にカラフルな色で文字を打ち出せるのです。
 
早速以下のコマンドを入力。
admin_csay "red hello world!"
(注意:"は*で出ます)
これで、画面上部に赤色でhello world!と表示される・・・・・・はずですが、
おそらく表示されません。
 
This is a restricted command which you cannot use.
 
などと書かれて実行できません。
 
実は、これでいいのです。初期の設定を何もしていない状態では
使えるコマンドにも、制限があるのです。よって、早くこの設定を
済ませて、色々と弄りたいですよね。