Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Welcome HUD Text on Join

Featured Replies

  • Administrator

Shows a customised welcome message on the HUD when a player enters the server, with the player name, current map and a rules reminder.

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

  • 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.
  • Copy data/lang/olds_welcome.txt to addons/amxmodx/data/lang/.
  • Copy configs/olds_welcome.txt (the message) to addons/amxmodx/configs/.
  • Copy configs/plugins/olds_welcome.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • 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).

Install

Download 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_welcome.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-2042).

Welcome HUD Text on Join
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.2 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 309 lines
/*
 * Welcome HUD Text on Join (olds.ro workshop card LIB-2042)
 *
 * Shows a welcome message in the middle of the screen when a player joins:
 * 3 seconds after entering the server, or at the player's first spawn if
 * they are still choosing a team then, so it never hides behind the team
 * menu.
Show all 309 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.