Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

HLTV Inviter

Plugin
Daemoncfdc963e25Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
HLTV Inviter 1.0.0 (olds.ro) ============================ Lets an admin invite an HLTV proxy to the server by its address, and keeps a slot free for HLTV so a full server can still be watched. Requirements - AMX Mod X 1.10.0.5490 or newer with the sockets module - An HLTV proxy whose adminpassword you know Install Compile scripting/olds_hltvinv.sma and copy olds_hltvinv.amxx to addons/amxmodx/plugins/; make sure "sockets" is enabled in modules.ini. No downloads. Settings (addons/amxmodx/configs/plugins/olds_hltvinv.cfg, made on first run) olds_hltvinv_reserve 1 player slots kept free for HLTV proxies (0 = off) olds_hltvinv_pass "" the proxy's adminpassword; without it nothing is sent olds_hltvinv_server "" this server's public ip:port as the proxy should dial it (empty = the server's own address) Admins (ADMIN_RCON) amx_hltvinvite <ip:port> asks that proxy to connect here amx_hltvkick disconnects every connected HLTV proxy amx_hltvinv_status slots, proxies and the last invite How it works - A game server cannot pull a proxy in by itself (the card's tv_relay idea is an HLTV-side command), so the plugin does what an admin at the proxy's console would do, over UDP: it asks the proxy for an rcon challenge ("challenge rcon"), then sends rcon <challenge> "<olds_hltvinv_pass>" connect <this server>. The proxy then joins like any HLTV. The address is checked first (a.b.c.d:port, every part in range); a bad one gets the usage line and no packet. With no answer in 3 s the invite ends with a message. Every invite, answer and kick is written with log_amx. - The reserve: sv_visiblemaxplayers is set to maxplayers - reserve (and restored when the reserve is 0 or the map ends), sv_proxies to at least 1. A player (or bot) who would take one of the reserved slots while no proxy holds it is turned away with "Server is full"; an HLTV proxy always gets in. - amx_hltvkick kicks every HLTV client, which frees the slot again.

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.