Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Welcome HUD Text on Join

Plugin
Alexit28c1b0aed8Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Welcome HUD Text on Join 1.0.0 (olds.ro) ======================================== Shows your own welcome message in the middle of the screen when a player joins: 3 seconds after entering the server, or at the first spawn if the player is still choosing a team then, so the message never hides behind the team menu. The text can greet the player by name and show the map and the number of players. Requirements - ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI - AMX Mod X 1.10 or newer (written and tested on 1.10.0.5490) Install 1. Compile scripting/olds_welcome.sma and copy olds_welcome.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes. 2. Copy data/lang/olds_welcome.txt to addons/amxmodx/data/lang/. 3. Copy configs/olds_welcome.txt (the message) to addons/amxmodx/configs/. 4. Copy configs/plugins/olds_welcome.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values). 5. Add olds_welcome.amxx to addons/amxmodx/configs/plugins.ini. The message (addons/amxmodx/configs/olds_welcome.txt) Each line of the file is one line on the screen; lines starting with ; or // are comments, and empty lines between text lines are kept. These tokens are replaced: %name% the player's name %map% the current map %players% players in the server now, the new one included %maxplayers% the server's player slots Keep the whole text under 400 characters (a HUD message cannot hold much more). The file is read at every map start. If it is missing or has no text, a short default message is shown and the server console says so. A name is always shown exactly as it is: a % or a token inside a player's name is never treated as part of the message. Settings (addons/amxmodx/configs/plugins/olds_welcome.cfg) olds_welc_time 6 seconds the message stays on the screen (1 - 30) olds_welc_color "0 160 255" text colour: red green blue, 0 - 255 each olds_welc_once 1 1 = once per map for each player (also after a reconnect with the same Steam ID), 0 = again at every spawn Commands None. Tested on ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-R 1.3.0.149, AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358, with bots on de_dust2: a new player welcomed 3 seconds after entering, with the right name, map and player count; no repeat at the next round with olds_welc_once 1, and a repeat at every spawn with 0; a player who joined dead in the middle of a round welcomed only at his first spawn; a player who left during the 3 seconds never welcomed and no error logged; a name with % signs and tokens in it shown unchanged (ReHLDS itself turns a % in a name into a full-width percent sign); the default text when the file is missing. No sounds, models or sprites are added. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2042. Licence: GNU GPL version 3 or later (GPL-3.0-or-later).

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.