Skip to content

HLDS XMPP Client

The plugin lets you connect a Jabber account to the server and manage the server by sending simple commands to this account. It also supports chatting with players through the in-game chat, viewing cvar values, sending RCON commands, and xstatus with current server information. Features…

PluginCounter-Strike 1.6vbetaViews:18Downloads:9

Description

Description:
The plugin lets you connect a Jabber account to the server and manage the server by sending simple commands to this account. It also supports chatting with players through the in-game chat, viewing cvar values, sending RCON commands, and xstatus with current server information.

Features:
- Uses the standard Sockets AMXX module.
- Supports PLAIN authentication.
- Control is allowed only from permitted contacts.
- Automatic authorization of unknown contacts.
- Subscription to the server chat.
- Support for message templates.

Commands:
All commands are sent to the server's contact as regular messages.
For example, to find out the current value of the mp_timelimit cvar, just write to the server:
cvar mp_timelimit
The server will reply with the current cvar value, for example:
'mp_timelimit' = '1337'

Server chat subscription:
chat on - turn on the subscription; in this mode all chat messages will be sent to you. To reply to these messages, just write a regular message.
chat off - unsubscribe from the chat.
chat status - check the subscription status.

RCON control:
rcon <command> - send an RCON command to the server. If the command runs successfully, the server will reply to you.

Viewing cvars:
cvar <cvar name> - check the current value of a cvar. The server will reply with the current cvar value.

Viewing the player list:
status - get the list of players. It will show their nickname, SteamID, kills/deaths, ping/loss (not configurable).

Configuration:
Configuration file: addons/amxmodx/configs/xmpp.ini

[xmpp] block:
The account connection data is set in the [xmpp] block.

host - the host to connect to
port - port
domain - domain
user - login
password - password
res - resource

Example, connection details for test@ya.ru on Yandex.Online:

Pawn
[xmpp]
host = xmpp.yandex.ru
port = 5222
domain = ya.ru
user = test
password = 12345sasai
res = 1337Server

[xmpp_refresh] block:
This block sets the plugin's timers. If everything works, it's best not to touch anything here.

recheck - how often the plugin checks the socket for new data.
fetch - don't touch.
parse - data reading timer.
xstatus - xstatus update time.
maxfail - maximum number of attempts to connect to the account.

[xmpp_allow] block:
Here we list the addresses of the contacts that are allowed to control the server.

Example, let's allow access for me:

Pawn
[xmpp_allow]
serfreeman1337@ya.ru

xmpp_template block:
Here we set the message templates. The template descriptions will come a bit later.

xstatus - template for xstatus
say - player message template (for subscribing to server messages)

=======================

The plugin was tested on the following IM services:
Yandex.Online
Jabber.ru

It should work on any service that supports PLAIN authentication.

Source: http://c-s.net.ua/forum/topic54356.html

Credits

Authors: serfreeman1337

Related

Pluginv1.8

Hats

AMX Mod X plugin for Counter-Strike. The plugin allows the player to wear hats on their heads. The main feature of this modification is the player's ability to choose a skin or a submodel of a headgear on his own and set which of them will be available exclusively to VIP players.

Pluginv0.3

Slot Machine

AMX Mod X plugin for Counter-Strike. The plugin allows you to place slot machines on the map and play them. The player places a bet and waits for a winning combination of symbols to appear. A victory is counted when a whole row or diagonal is filled with the same symbols.

Pluginv1.0

Costumes

This plugin adds costumes to your server; the models are compressed into one so as not to hit the server's limit. It can also be set up for ZombiePlague: to do so, uncomment the code // #define ZP_SUPPORT in the source and compile. Usage: /costumes - in chat to open the costumes menu…