Distress Vocabulary 1.0.0 (olds.ro)
===================================
Biohazard add-on. A living human types /help and picks one short team
request ("Need ammo", "Cover me", ...). Every living human gets it in chat,
each in their own client language from the server dictionary; zombies and
dead players never see it.
Requirements
- AMX Mod X 1.10.0.5490 or newer
- Biohazard (library "biohazardf": is_user_zombie, forward event_infect)
Install
1. Compile scripting/olds_distress.sma (the Biohazard native is declared in
the plugin) and copy olds_distress.amxx to addons/amxmodx/plugins/,
after Biohazard in plugins.ini.
2. Upload data/lang/olds_distress.txt to addons/amxmodx/data/lang/ (server
side only; clients download nothing).
Use
say /help open the request menu (living humans only)
Requests: Need ammo, Need backup here, Cover me, Fall back, Hold this
position, Zombies coming this way, Follow me.
Languages
The menu is shown in the caller's language and each recipient reads the
request in their own (the client's "lang" setinfo, amx_client_languages 1).
This package ships the [en] entries; a language without its own section
falls back to English. To add Romanian, Polish or Turkish, copy the [en]
block in olds_distress.txt to [ro], [pl] or [tr] and translate the text
after each "=" (keep the keys and the %d).
Settings (addons/amxmodx/configs/plugins/olds_distress.cfg, created on first run)
olds_distress_cd 5 seconds between two requests from one player; a
/help within the cooldown is refused with the seconds
left
Open menus are closed, and a late key press ignored, when the caller is
infected, dies or leaves.
No downloads for clients.