addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Custom Chat Commands 1.0.0 (olds.ro)
====================================
Extra chat commands from a text file, without writing a plugin: a word typed
in chat shows a text to the player, runs a command for the player, or runs a
server command.
Requirements
- AMX Mod X 1.10 or newer (no extra modules, ReAPI is not needed)
- Written for AMX Mod X 1.10.0.5490, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814
Install
1. Compile scripting/olds_saycustom.sma with amxxpc 1.10 and copy
olds_saycustom.amxx to addons/amxmodx/plugins/.
2. Copy data/lang/olds_saycustom.txt to addons/amxmodx/data/lang/.
3. Copy configs/olds_saycustom.ini and configs/plugins/olds_saycustom.cfg
to the same folders under addons/amxmodx/configs/.
4. Add olds_saycustom.amxx to addons/amxmodx/configs/plugins.ini.
Entries (addons/amxmodx/configs/olds_saycustom.ini), one per line
word|action|text
word what the player types in chat, any case, for example /rules
print the text is shown in chat to that player only
cmd the text runs as the player's own command, through the server,
so plugins and the game both see it (say and say_team get the
rest of the line; other commands up to two arguments)
server the text runs as a server command, never as the player
Examples
/rules|print|No cheats, no spam, respect the admins.
!rank|cmd|say /rank
/next|server|amx_say Type nextmap to see the next map
- Works in say and say_team; the whole chat line must be the word.
- A line that cannot be read is skipped and the log says why.
- At most 100 entries; more are ignored and the log says so once.
Admin command (flag "h", ADMIN_CFG, and the server console)
amx_saycustom_reload reads the file again, without a map change
Settings (addons/amxmodx/configs/plugins/olds_saycustom.cfg)
olds_saycustom_hide 1 1 = the typed word is not shown in chat
olds_saycustom_log 0 1 = every use is written to the AMX Mod X log
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1517.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).