Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Alltalk Vote

Featured Replies

  • Administrator

At map start players vote on whether alltalk is on or off for the map.

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

  • Compile scripting/olds_atvote.sma and copy olds_atvote.amxx to addons/amxmodx/plugins/.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_atvote.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0978).

Alltalk Vote
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads3.8 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 252 lines
/*
 * Alltalk Vote (olds.ro workshop card LIB-0978)
 *
 * Map voting: olds_atv_delay seconds after the map starts, players vote for
 * alltalk on or off for this map. The side with more than olds_atv_ratio of
 * the votes sets sv_alltalk; a tie or no votes leaves it as it was.
 *   menu                   opens for everyone, and for players who join while
Show all 252 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.