Raised This Month: $51 Target: $400
 12% 

HLDS XMPP Client beta v2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 08-23-2013 , 03:41   HLDS XMPP Client beta v2
Reply With Quote #1

HLDS XMPP Client
Version: beta v2

Description:
With this plugin you can connect Jabber account to your server and get control on your server via sending simply commands to that account. You can chat with players on servers, send RCON commands, check cvars values, and read xstatuses with server info.

Features:
- Using AMXX Sockets modules.
- Supports PLAIN auth method.
- Management only from allowed contacts.
- Auto authorization of unknown contacts.
- Server chat subscription.
- Messages delivery notify.
- Ping back requests.
- Messages and XStatus templates.

Commands:
All commands are sending via IM client as just messages.
For example, if you want to know what value of "mp_timelimit" cvar then just send to server account following text:
Code:
cvar mp_timelimit
And you get it:
Code:
 'mp_timelimit' = '1337'
Server chat subscription:
  • chat on - subscript to server chat, in this mode all server say messages are got sending to your jabber id. For reply on those messages just send your message and players see it in theirs chat.
  • chat off - unsubscript from server chat messages.
  • chat status - check server chat subscription status.

RCON commands:
  • rcon <command> - send rcon command to server. Server sends you reply if command accepted.

Cvar values:
  • cvar <cvar name> - get cvar value. Server sends you cvar value.

Get players list:
  • status - get players list. Unstable. Work in progress.

Configuration:
Configuration file: addons/amxmodx/configs/xmpp.ini
[xmpp] section:
You must set login data in this section.
  • host - host for connection
  • port - port
  • domain - domain
  • user - login
  • password - password
  • res - resource name
  • priority - resource priority
  • os - OS information for client version request

Example, [email protected] account on Yandex.Online:
Code:
[xmpp]
host = xmpp.yandex.ru
port = 5222
domain = ya.ru
user = test
password = 12345sasai
res = 1337Server
priority = 10
os = L337 Server OS
[xmpp_refresh] section:
Here you can set time delays in plugin. If anythings works fine dont touch that.
  • recheck - how often plugin checks for new data. If your messages wasted try to lower this value.
  • fetch - timer for auth sequence time.
  • parser - how fast plugin gets new data.
  • xstatus - sets xstatus refresh time.
  • maxfail - sets maximum nums of fail of auth operations.
  • timeout - time for wait response from jabber server. If time run out plugin retry connection again.

[xmpp_allow] section:
Write here jabber ids, which you want to get control from.

Example, give me full access:
Code:
[xmpp_allow]
[email protected]
[xmpp_template] section:
Message and XStatus templates.
  • xstatus - xstatus template.
  • say - say message template.


Plugin tested on following JabberIM services:
But should work on any services which supports PLAIN auth method. Its means you cant connect it with GTalk account.
Attached Thumbnails
Click image for larger version

Name:	xmpp_img.jpg
Views:	754
Size:	88.3 KB
ID:	124657   Click image for larger version

Name:	xmpp_clientinfo.JPG
Views:	614
Size:	17.7 KB
ID:	124658  
Attached Files
File Type: zip xmpp.zip (1.9 KB, 267 views)
File Type: sma Get Plugin or Get Source (xmpp.sma - 983 views - 22.4 KB)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 08-23-2013 at 06:12.
GordonFreeman (RU) is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-23-2013 , 04:28   Re: HLDS XMPP Client beta v2
Reply With Quote #2

Prefer ZIP extension instead as more generic.
__________________
Arkshine is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 08-23-2013 , 06:14   Re: HLDS XMPP Client beta v2
Reply With Quote #3

Hotfix:
- fixed iq parser function bug which may cause xmpp account not response.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-23-2013 , 06:21   Re: HLDS XMPP Client beta v2
Reply With Quote #4

Didn't test it, but good job.

plugins looks huge and successful
sami_spt is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-24-2013 , 10:43   Re: HLDS XMPP Client beta v2
Reply With Quote #5

Looks cool, great job.
__________________
Kia is offline
SPT1
Senior Member
Join Date: Aug 2012
Old 08-24-2013 , 15:28   Re: HLDS XMPP Client beta v2
Reply With Quote #6

nice plugin
__________________
AMXMODX
SPT1 is offline
SERGE90
New Member
Join Date: Jun 2017
Location: Pervouralsk, Russia
Old 06-25-2017 , 13:38   Re: HLDS XMPP Client beta v2
Reply With Quote #7

It doesn't work after new XMPP protocol updates
SERGE90 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode