10 hours ago10 hr Administrator Switches the map between day and night light levels by admin command or a vote at map start, with a fixed or per-round schedule. Day And Night Lighting 1.0.0 (olds.ro) Switches the light of the whole map between day and night: by an admin command, by a players' vote at map start, or every round in turn. Requirements AMX Mod X 1.10 or newer with the fakemeta module (enabled by default)ReAPI (ReGameDLL_CS) for the round restart hookWritten for AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814 Install Compile scripting/olds_daynight.sma with amxxpc 1.10 (with the ReAPI include files) and copy olds_daynight.amxx to addons/amxmodx/plugins/.Copy data/lang/olds_daynight.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_daynight.cfg to addons/amxmodx/configs/plugins/ (if you skip this, the plugin writes the same file with the defaults on its first start).Add olds_daynight.amxx to addons/amxmodx/configs/plugins.ini. Admin command (flag "f", ADMIN_MAP, and the server console) amx_daynight day the day light (olds_dn_day) amx_daynight night the night light (olds_dn_night) amx_daynight toggle night if it is day, day if it is night The light changes for everyone at once; chat says who changed it.An admin's choice also ends a running vote.Every change is written to the AMX Mod X log with the admin's name.Admins without the flag are refused and nothing changes.The access flag can be changed in addons/amxmodx/configs/cmdaccess.ini. Modes (olds_dn_mode) 0 Only the admin command changes the light. 1 20 seconds after the map start every player gets a menu: Day or Night. The vote is open for 15 seconds; the side with more votes wins. A tie (or no votes) leaves the light as it is. 2 Day and night take turns, one round each. Each change is written to the AMX Mod X log, for example: Round 4: night (light style "c"). Server command olds_dn_status prints the mode, the light in use, the vote count and how often the style was sent to joining players Notes Players who join later see the same light: the plugin sends them the style when they enter the game and once more a second later.A new map always starts with its own light; the plugin changes nothing until the command, the vote or a new round in mode 2.A style can have several letters ("mmnmmommommnonmmonqnmmo" flickers). A cvar value with anything other than letters a to z is not used: the default (m for day, c for night) is used instead and the log says so. Settings (addons/amxmodx/configs/plugins/olds_daynight.cfg) olds_dn_mode 0 0 = command only, 1 = vote at map start, 2 = day and night every other round olds_dn_day "m" light style for day (m = normal) olds_dn_night "c" light style for night (a = darkest, z = brightest) Texts are in data/lang/olds_daynight.txt (English). Add a section such as [ro] to translate them. No sounds, models or sprites are used. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1540. Licence: GNU GPL version 3 or later (GPL-3.0-or-later). 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/olds_daynight.sma, test/olds_daynight_test.sma Idea: olds.ro workshop library · Plugin: alexit · 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-1540). Day And Night Lightingv1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.9 KBUpdated 10 hours agoSign in to downloadolds_daynight.smaPawn (AMX Mod X) · 486 lines4 files/* * Day And Night Lighting (olds.ro workshop card LIB-1540) * * Switches the light of the whole map between day and night: by an admin * command, by a players' vote at map start, or every round in turn. * * Admin command (ADMIN_MAP, flag "f"; also from the server console):Show all 486 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.