Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Contact Info Command

Featured Replies

  • Administrator

A chat command such as /contact shows the server's website, forum and admin contact details in chat or a window.

Contact Info Command 1.0.0 (olds.ro)

Players type /contact or /info in chat and see where to find the server: the website, the Discord invite and how to reach an admin. The details come as coloured chat lines that only that player sees, or in a MOTD window.

Requirements

  • AMX Mod X 1.10 or newer (no extra modules, ReAPI is not needed)
  • Tested on AMX Mod X 1.10.0.5490, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814

Install

  • Compile scripting/olds_contact.sma with amxxpc 1.10 and copy olds_contact.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_contact.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_contact.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_contact.amxx to addons/amxmodx/configs/plugins.ini.
  • Put your own details in olds_contact.cfg.

Chat commands (chat and team chat)

  /contact   /info   show the contact details
  • The typed command stays in chat like any other line, so plugins that read chat (logs, anti-spam, gag) still see it.
  • A contact cvar that is empty (or only spaces) is left out: no blank line and no empty row in the window. When all three are empty, the player is told "No contact details are set on this server."
  • Within the cooldown the player gets only "Please wait N seconds before asking again."

Settings (addons/amxmodx/configs/plugins/olds_contact.cfg)

  olds_contact_web      "https://olds.ro"   website line, "" = no line
  olds_contact_discord  ""                  Discord line, "" = no line
  olds_contact_admin    ""                  admin contact line, "" = no line
  olds_contact_mode     1    1 = chat lines, 2 = MOTD window
  olds_contact_cd       5    seconds a player waits between two uses,
                             0 = no wait
  • Changes are shown at once, without a map change. A lower cooldown also shortens a wait that has already started.
  • Values longer than 96 bytes are cut. In the window, characters such as < > & are shown as text, so a value cannot break the page.

Chat example (mode 1; the labels are green) Website: https://olds.ro Discord: discord.gg/yourcode Admin: Alex - Steam: alex_cs

Texts are in data/lang/olds_contact.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-1506. 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_contact.sma, test/olds_contact_mirror.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-1506).

Contact Info Command
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.3 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 291 lines
/*
 * Contact Info Command (olds.ro workshop card LIB-1506)
 *
 * A player types /contact or /info in chat and sees the server's website,
 * Discord and admin contact, either as coloured chat lines that only that
 * player sees or in a MOTD window.
 *
Show all 291 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.