Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

Wardrobe Ballot

Plugin
Daemon42cc63017dVersion 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Wardrobe Ballot 1.0.0 (olds.ro) =============================== Jailbreak: an inmate says /theme and the inmates vote, for olds_wardrobe_secs seconds, on a cosmetic theme from the packs the server's wardrobe core has installed. The theme with the most votes is applied to every inmate through the core, and the core's default comes back at round end. Requirements - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI - AMX Mod X 1.10.0.5490 or newer - A wardrobe core that provides the natives in scripting/include/olds_wardrobe_core.inc (library "wardrobe_core"), directly or through a small bridge plugin Install 1. Compile scripting/olds_wardrobe.sma and copy olds_wardrobe.amxx to addons/amxmodx/plugins/, after the wardrobe core in plugins.ini. The compiler needs ReAPI's include files. 2. Copy data/lang/olds_wardrobe.txt to addons/amxmodx/data/lang/. Settings (addons/amxmodx/configs/plugins/olds_wardrobe.cfg, created on first run) olds_wardrobe_secs 20 seconds the vote stays open (5-60) Commands say /theme start the vote (inmates, once a round) or reopen the menu say /theme <n> vote for theme n of the menu directly olds_wardrobe_status (ADMIN_CFG) themes, votes and the applied theme Rules - Inmates are the terrorists; only they vote. - Only themes the core confirms complete (every file present and precached) are listed. An incomplete theme is left out and a server log line names the missing file, once per map. - One vote per inmate: voting again replaces the earlier vote. Choosing a theme in the menu also asks the core for a preview. - The most votes wins; a tie goes to the theme listed first; without votes nothing changes. The winner is checked once more before it is applied. - Round end and round restart put every inmate back in the core's default. Files and permissions This plugin ships no models: it offers only the themes the installed wardrobe core has, with that pack's own files and distribution terms. List the pack's model paths and their permission in the server's notes before release; a theme whose files are missing is disabled automatically. For the core (include/olds_wardrobe_core.inc, library "wardrobe_core") wardrobe_theme_count() wardrobe_theme_check(theme, name[], nameLen, missing[], missingLen) 1 = complete; else missing[] names the first missing file wardrobe_preview(id, theme) wardrobe_apply(id, theme) theme -1 (WARDROBE_DEFAULT) = default

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.