10 hours ago10 hr Administrator The hostname updates with the time left or an animated text, so the server list shows a changing name. Dynamic Hostname 1.0.0 (olds.ro) Changes the server name (hostname) every few seconds, so the server list shows a name that moves: either the time left on the map, or a series of texts read from a file. Mode 1: olds.ro CS | 12:34 left Mode 2: olds.ro CS | Public 1.6 -> olds.ro CS | www.olds.ro -> ... Requirements AMX Mod X 1.10 or newer (no extra modules, ReAPI is not needed)Written for AMX Mod X 1.10.0.5490, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814 Install Compile scripting/olds_hostname.sma with amxxpc 1.10 and copy olds_hostname.amxx to addons/amxmodx/plugins/.Copy data/lang/olds_hostname.txt to addons/amxmodx/data/lang/.Copy configs/olds_hostname.txt (the frames for mode 2) and configs/plugins/olds_hostname.cfg to the same folders under addons/amxmodx/configs/ (if you skip the .cfg, the plugin writes it with the defaults on its first start).Add olds_hostname.amxx to addons/amxmodx/configs/plugins.ini. Modes (olds_hn_mode) 0 Off: the plugin leaves the hostname alone. 1 The base name and the time left on the map, as mm:ss. Without a time limit (mp_timelimit 0) the base name is shown alone. 2 The lines of configs/olds_hostname.txt, one after another, in the order of the file, starting again at the first after the last. Frames file (addons/amxmodx/configs/olds_hostname.txt) One server name per line, up to 32 lines.At most 63 bytes per line (the server list shows no more); longer lines are cut, never inside a letter.Empty lines and lines starting with ; or // are skipped.Read at every map start; olds_hn_reload reads it again at once.Without frames, mode 2 shows the base name and the log says so once. Server commands olds_hn_status prints the settings, the frames and the hostname now olds_hn_reload reads configs/olds_hostname.txt again Notes The time left is worked out at every update from the current mp_timelimit, so after a map change it is the new map's time.The hostname is set only when the text changed.Before a map change the plain base name is set back, so the list shows no stale time. A hostname line in server.cfg is replaced by the plugin's name as soon as the map has started.An empty olds_hn_base means "olds.ro CS"; the log says so once per map. Settings (addons/amxmodx/configs/plugins/olds_hostname.cfg) olds_hn_base "olds.ro CS" server name (mode 1 adds the time left) olds_hn_mode 1 0 = off, 1 = time left, 2 = frames olds_hn_interval 5 seconds between updates (1 - 300) The "left" text is in data/lang/olds_hostname.txt (English); the server's language (amx_language) is used. No sounds, models or sprites are used. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1570. 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_hostname.sma, test/olds_hostname_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-1570). Dynamic Hostnamev1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.6 KBUpdated 10 hours agoSign in to downloadolds_hostname.smaPawn (AMX Mod X) · 318 lines5 files/* * Dynamic Hostname (olds.ro workshop card LIB-1570) * * Changes the server name (hostname) every few seconds, so the server list * shows a name that moves: either the time left on the map, or a series of * texts ("frames") read from a file. *Show all 318 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.