addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.4 KB
No file matches.
Alltalk Vote 1.0.0 (olds.ro)
============================
Map voting: a while after the map starts, players vote whether alltalk is
on or off for the map.
Requirements
- AMX Mod X 1.10.0.5490 or newer
Install
1. Compile scripting/olds_atvote.sma and copy olds_atvote.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_atvote.txt to addons/amxmodx/data/lang/.
No downloads: chat text and the stock sound/buttons/blip1.wav.
Settings (addons/amxmodx/configs/plugins/olds_atvote.cfg, made on first run)
olds_atv_delay 30 seconds after the map start before the vote
(0 = no vote at map start)
olds_atv_time 15 seconds the vote runs
olds_atv_ratio 0.5 share of the votes a side must exceed to win
olds_atv_once 1 one vote per map: amx_voteat is refused after it
Players
the vote menu (On / Off), shown to everyone when the vote starts and to
players who join while it runs; olds_atv_vote 1|0 from the console does
the same. One vote each.
Admins (ADMIN_VOTE)
amx_voteat start a vote now
amx_atv_status running, votes so far, seconds left, sv_alltalk
How it works
- plugin_cfg starts a timer (set_task) for the vote; the menu is made
with menu_create and closes when the vote ends.
- On wins with more than olds_atv_ratio of the votes cast (sv_alltalk 1,
set_cvar_num); Off wins the same way (0). A tie or no votes leaves
sv_alltalk as it was. The result is announced and logged.