10 hours ago10 hr Administrator Let inmates choose a cosmetic theme from packs already installed by the server. 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, ReAPIAMX Mod X 1.10.0.5490 or newerA wardrobe core that provides the natives in scripting/include/olds_wardrobe_core.inc (library "wardrobe_core"), directly or through a small bridge plugin Install 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.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 InstallDownload 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/include/olds_wardrobe_core.inc, addons/amxmodx/scripting/olds_wardrobe.sma, test/wardrobe_stub.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 (AMX-069). Wardrobe Ballotv1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.1 KBUpdated 10 hours agoSign in to downloadolds_wardrobe.smaPawn (AMX Mod X) · 337 lines4 files/* * Wardrobe Ballot (olds.ro workshop card AMX-069) * * 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 roundShow all 337 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.