AMX Mod 0.9.8 Pre-Alpha
=============================================================================
I. Installation
II. Commands
III. Writing Plugins
IV. Compiling plugins
V. Settings
VI. Troubleshooting, FAQ
VII. Changelog
I. Installation
=============================================================================
You *must* have Metamod 1.17 or higher installed to use this plugin.
1. Download MetaMod from http://www.metamod.org and install it
following its instructions.
Just to make sure, after installation, you should get:
$moddir/addons/metamod/dlls/metamod.dll
$moddir/addons/metamod/dlls/metamod_i386.so
$moddir/addons/metamod/plugins.ini
In $moddir/liblist.gam file instead of:
gamedll "dlls\mp.dll"
gamedll_linux "dlls/cs_i386.so"
You should have:
gamedll "addons\metamod\dlls\metamod.dll"
gamedll_linux "addons/metamod/dlls/metamod_i386.so"
2. Unzip this file to $moddir (f.e.: $moddir is "cstrike"
if you run Counter-Strike) with directory structure.
You should get:
$moddir/addons/amx/dlls/amx_mm.dll
$moddir/addons/amx/dlls/amx_mm_i386.so
$moddir/addons/amx/dlls/fun_mm.dll
$moddir/addons/amx/dlls/fun_mm_i386.so
$moddir/addons/amx/dlls/csstats_mm.dll
$moddir/addons/amx/dlls/csstats_mm_i386.so
$moddir/addons/amx/dlls/mysql.dll
$moddir/addons/amx/dlls/mysql_i386.so
$moddir/addons/amx/examples/*.sma
$moddir/addons/amx/examples/include/*.inc
$moddir/addons/amx/logs/...
$moddir/addons/amx/plugins/plugins.ini
$moddir/addons/amx/plugins/*.amx
$moddir/addons/amx/modules.ini
$moddir/addons/amx/...
3. Open "addons/metamod/plugins.ini" and add there
(line with ; char is a comment):
; AMX Mod
win32 addons\amx\dlls\amx_mm.dll
linux addons/amx/dlls/amx_mm_i386.so
4. Open "addons/amx/modules.ini" and add
there lines (if not already exist there):
; More script functions for AMX Mod
addons/amx/dlls/fun_mm.dll
addons/amx/dlls/fun_mm_i386.so
; Counter-Strike Statistics (only if you use stats)
addons/amx/dlls/csstats_mm.dll
addons/amx/dlls/csstats_mm_i386.so
; MySQL access (only if you run plugins to use with that)
addons/amx/dlls/mysql.dll
addons/amx/dlls/mysql_i386.so
5. Make sure you have plugins.ini and AMX scripts files
under "addons/amx/plugins" path.
You can also override plugins list filename by setting
amx_plugins localinfo as a HLDS parameter.
(f.e. +localinfo amx_plugins "addons/amx/plugins.ini")
NOTES:
. You can remove CS Stats from modules.ini unless you run
Counter-Strike with AMX Statistic Plugins.
. MetaMod can use "addons/metamod/plugins.ini" or
"metamod.ini" file to specify its plugins. If you
don't have any then create one.
II. Commands
=============================================================================
To see the list of all available commands for AMX Mod,
type "amx" in the server console. With these commands
you can check version of AMX, list all cvars
and server commands registered by plugins; pause,
unpause plugins; display status and additional info about
plugins and modules.
If none of them works or you get an error message then
you haven't installed AMX properly.
III. Writing Plugins
=============================================================================
For Small basics read: http://www.compuphase.com/smalldoc.pdf
To learn about AMX Mod script functions (natives) go to
"addons/amx/examples/include" path and read contents of all files
with "inc" extension. A good idea is reading code of scriptis
published on AMX web site: http://amxmod.net/amx-plugins.php
Scripting in AMX Mod is the same as it is in AdminMod.
However plugins from first won't run under second and vice versa.
IV. Compiling plugins
=============================================================================
Enter to "addons/amx/examples" path where you will find files "sc.exe"
for win32 and "sc" for linux. This are compilers for AMX scripts.
To compile your script (files with "sma" extension), put it into
"addons/amx/examples" directory and run proper compiler passing the
name of your script filename as an argument (for win32 you may run
"compile.bat" and under linux "compile" to get all files with "sma"
extension compiled in "addons/amx/examples/compiled" directory).
Plugins compiled under win32 work on linux and vice versa.
V. Settings
=============================================================================
AMX has serveral options which allow you to run the same program
on multiple sessions. To achive it you have to run your dedicated server
with additional parameters in command line.
Here is a list with short description:
amx_basedir - By default set to "addons/amx". This localinfo is used
by scripts written in Small to get location of theirs configuration files.
amx_logdir - By default set to "addons/amx/logs". Describes folder where
logs send by log_to_file native are stored. Note that a directory must be
created by a system user.
amx_modules - By default set to "addons/amx/modules.ini". Position of a file
with list of AMX modules to load. Note that some modules require to be
linked also by metamod (these which are related to game modification).
amx_plugins - By default set to "addons/amx/plugins/plugins.ini". Describes
a file with list of AMX plugins to load. Compiled plugins must be in
the same folder where the file is placed.
amx_vault - By default set to "addons/amx/vault.ini". This is a location
of file where vault data are stored.
csstats_score - By default set to "addons/amx/csstats.amx". This is a
location of file by which a score is evaluated.
csstats - By default set to "addons/amx/csstats.dat". This is a name
of file where rank is stored in a binary form.
All these settings above should be put in a command
line with +localinfo in front. For example:
./hlds_run -game cstrike +localinfo amx_logdir "addons/amx/logs_27016"
There is also other possibility to configure AMX. You have to create a
file i.e. "addons/amx/config.ini" and put there settings:
; Configuration file for AMX
amx_basedir addons/amx
amx_logdir addons/amx/logs
amx_modules addons/amx/modules.ini
amx_plugins addons/amx/plugins/plugins.ini
amx_vault addons/amx/vault.ini
csstats_score addons/amx/csstats.amx
csstats addons/amx/csstats.dat
Now you can run a server with: +localinfo amx_cfg "addons/amx/config.ini"
VI. Troubleshooting, FAQ
=============================================================================
The best place to ask a question and get an answer is to go to the
amxmod.net forum. However before posting any questions make sure that
an answer is not already posted, use Search engine of forum.
Here is a bunch of most common questions.
Q: I get "[AMX] Function not found (name "xxx") (plugin "xxx")" and
a plugin name given in this message is not loaded properly.
A: This is because you have not installed properly modules, which
extends functionality of AMX. Type 'amx modules' and 'meta list' to
get a list of modules you run.
Q: I've switched from AMX 0.9.3 to AMX 0.9.7 and whenever I start up
the server it just doesn't load a map but exits with
"Couldn't find "AMX_Query" (file "xxx")" message.
A: This is because AMX 0.9.7 has new interface for modules. You
need to upgrate your old modules (Vexd, Fun, Warcraft 3 etc.)
to newer. FUN, MYSQL and CSSTATS are already included in AMX 0.9.7
package.
Q: How do I add a new admin account?
A: Enter to "addons/amx/users.ini" and read carefully comments and
examples posted below. Example account looks like this:
"My Name" "my_password" "abcdefghijklmnopqrstu" "a"
Where first parameter can be autid, name or ip, second i
没有合适的资源?快使用搜索试试~ 我知道了~
cs deathmatch
共395个文件
cpp:50个
cfg:47个
h:43个
需积分: 3 2 下载量 156 浏览量
2009-10-07
11:13:26
上传
评论
收藏 2.44MB RAR 举报
温馨提示
for 1.6 谁有1.5的请贡献一下谢谢。。。。。。。。。。。。。。。。
资源推荐
资源详情
资源评论
收起资源包目录
cs deathmatch (395个子文件)
action 1KB
adrenalinegamer 581B
csdm_mod.amx 92KB
cmdmenu.amx 26KB
plmenu.amx 21KB
stats.amx 18KB
admincmd.amx 17KB
miscstats.amx 16KB
mapsmenu.amx 16KB
adminvote.amx 13KB
restmenu.amx 13KB
ppause.amx 13KB
statscfg.amx 11KB
pausecfg.amx 11KB
admin_mysql.amx 10KB
mapchooser.amx 10KB
admin.amx 9KB
adminchat.amx 8KB
telemenu.amx 5KB
imessage.amx 5KB
timeleft.amx 4KB
welcomemsg.amx 4KB
menufront.amx 3KB
scrollmsg.amx 3KB
nextmap.amx 2KB
stats_logging.amx 2KB
adminhelp.amx 2KB
adminslots.amx 1KB
antiflood.amx 872B
csstats.amx 98B
arg 524B
azuresheep 948B
compile.bat 237B
battlegrounds 1KB
botman 65B
bumpercars 246B
buzzybots 409B
ents_de_dust2.cfg 5KB
ents_cs_italy.cfg 5KB
ents_cs_italy.cfg 5KB
ents_de_dust.cfg 5KB
ents_de_dust.cfg 5KB
ents_de_dust2.cfg 4KB
ents_de_aztec.cfg 4KB
ents_cs_siege.cfg 4KB
ents_de_aztec.cfg 4KB
ents_cs_militia.cfg 4KB
ents_cs_assault.cfg 4KB
ents_cs_assault.cfg 4KB
ents_cs_siege.cfg 4KB
ents_cs_militia.cfg 4KB
ents_de_inferno.cfg 4KB
ents_de_inferno.cfg 4KB
ents_cs_office.cfg 4KB
ents_cs_office.cfg 3KB
ents_cs_estate.cfg 3KB
ents_cs_estate.cfg 3KB
amx.cfg 2KB
csdm_de_nuke.cfg 704B
csdm_de_aztec.cfg 702B
csdm_cs_office.cfg 700B
csdm_de_prodigy.cfg 681B
csdm_cs_italy.cfg 666B
csdm_de_cbble.cfg 664B
csdm_cs_militia.cfg 658B
csdm_de_dust.cfg 652B
csdm_de_survivor.cfg 649B
csdm_de_piranesi.cfg 648B
csdm_de_inferno.cfg 646B
csdm_cs_assault.cfg 641B
csdm_cs_siege.cfg 639B
csdm_de_dust2.cfg 610B
csdm_cs_estate.cfg 575B
csdm_de_airstrip.cfg 522B
csdm_de_chateau.cfg 513B
csdm_cs_backalley.cfg 501B
csdm_cs_747.cfg 485B
csdm_de_train.cfg 480B
csdm_de_storm.cfg 469B
csdm_cs_havana.cfg 465B
csdm_de_torn.cfg 459B
csdm_de_vertigo.cfg 437B
mysql.cfg 337B
blocked.cfg 6B
Changelog 34KB
common 313B
compile 229B
linkgame.cpp 109KB
mplugin.cpp 42KB
engine_api.cpp 40KB
engine_api_post.cpp 37KB
engine_api.cpp 36KB
dllapi.cpp 21KB
mlist.cpp 19KB
dllapi.cpp 17KB
dllapi_post.cpp 16KB
commands_meta.cpp 15KB
metamod.cpp 15KB
mreg.cpp 14KB
api_info.cpp 14KB
共 395 条
- 1
- 2
- 3
- 4
资源评论
zairwolfd
- 粉丝: 5
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- apk.tw_LineLite_v8a_v.2.17.1_sign.apk
- Elasticsearch实战:构建高效搜索系统的秘诀.zip
- HTML+CSS+JS网页设计:从入门到精通.zip
- 数据库课程设计:从理论到实践的全面指南.zip
- Python闭包:深入理解与应用场景解析.zip
- Win64OpenSSL-3-3-0.exe
- 课高分程设计-基于C++实现的民航飞行与地图简易管理系统-南京航空航天大学
- 航天器遥测数据故障检测系统python源码+文档说明+数据库(课程设计)
- 北京航空航天大学操作系统课设+ppt+实验报告
- 基于Vue+Echarts实现风力发电机中传感器的数据展示监控可视化系统+源代码+文档说明(高分课程设计)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功