AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Call Admin with XMPP(Jabber) (https://forums.alliedmods.net/showthread.php?t=117577)

Kilandor 02-02-2010 16:16

Call Admin with XMPP(Jabber)
 
4 Attachment(s)
Description
Allows players to call an admin with a message which is sent to XMPP(Jabber)

This plugin will also log all call attempts in addons/sourcemod/logs/call_admin_xmpp.log

Cvars
sm_caxmpp_version - Call Admin via XMPP version
caxmpp_host "" - Sets the Host to the webserver(ex. example.com).
caxmpp_port 80 - Sets the Port to the webserver(ex. 80).
caxmpp_url "" - Sets the URL to the XMPPHP location(ex. xmpphp/index.php)
caxmpp_seckey "" Sets the Security key sent to the webserver to limit requests to prevent unauthorized use
caxmpp_call_delay 180 - Amount of time allowed betwen calling an adming by a player(in seconds)
caxmpp_announce_delay 300.0 - Sets the delay between Call and Admin message(use 0.0 to disable)

Commands
!calladmin || /calladmin <message> Attempts to call an admin, a message is required(can be called from console with sm_calladmin)

Requirements

To Compile
To Run
Webserver
  • PHP 5 or greater (if 64bit linux build, needs 5.2.6 or better), SSL Support Compiled
  • XMPPHP 0.1 RC2 Rev77 or greater
General
  • Some sort of Google Talk/Jabber/XMPP account on a service
Setup

General
  1. Place call_admin_xmpp in addons/sourcemod/translations

Webserver
  1. Download XMPPHP and extract it to a location on your webserver (only the XMPPHP folder is needed)
  2. Download attached index.zip and Extract index.php so it resides in the same folder, the XMPPHP folder is in.
  3. Open index.php and Fill out the configure options at the top.

Changelog
  • 8-13-2009
    • Moved the initial GetConVar* calls to OnConfigsExecuted
      • Fixes problems with server name and other possible issues with the plugin not working for people
    • Added Cvar for setting a port

This should be all thats required. A SMX is attached since the compiler will be unable to compile

citkabuto 02-02-2010 16:20

Re: Call Admin with XMPP(Jabber)
 
Impressed you got this working so quick - will give it a try later - thanks!

/CK

snelvuur 03-01-2010 19:11

Re: Call Admin with XMPP(Jabber)
 
i was thinking about something similar, only include also a option where you can say you need xx amount of people that call for a admin to actually send out the call.

becuase if you see a person type in !calladmin, most other people go in the range of "hmm , whats that, let me try that command too!" and you get spam on your jabber.

tcviper 03-02-2010 10:37

Re: Call Admin with XMPP(Jabber)
 
Now it would be even cooler if you could type back to the user ingame from for example Google Talk :)

karuru 03-02-2010 11:16

Re: Call Admin with XMPP(Jabber)
 
can i have more xmpp users with this plugin? (more admins)

bouncer 03-02-2010 23:09

Re: Call Admin with XMPP(Jabber)
 
I get the idea of this plugin...but could you please provide some screenshots? Not familiar with Jabber and stuff...so I am wondering if you could please show some examples.

Thanks.

bman87 03-04-2010 12:43

Re: Call Admin with XMPP(Jabber)
 
Nice plugin! Tested it from an HTML file with a POST form. Just waiting to test it from my server..

Quick question,

caxmpp_announce_delay what is the point of this CVAR? When someone types the command it wont actually send to the admin for 5 minutes??

EDIT: It looks like it just prints "[CallAdmin] annouce" to all clients..? What is the point of that? If this is supposed to advertise the plugin in the game, your description needs editing, and a CVAR to customize the message

Quote:

Originally Posted by tcviper (Post 1105403)
Now it would be even cooler if you could type back to the user ingame from for example Google Talk :)

This! ^^

I am getting the messages sent to my Phone, it would be awesome if I could send a message back like "OMW."

bman87 03-04-2010 13:16

Re: Call Admin with XMPP(Jabber)
 
I am getting this error in my logs.

Quote:

L 03/04/2010 - 12:14:48: [call_admin_xmpp.smx] [CallAdmin] socket error 3 (errno 10060)
EDIT: Figured it out, my webserver is not running on port 80.. You should add a CVAR for the port...

For now I am just going to recompile it with the correct port number

bman87 03-11-2010 14:18

Re: Call Admin with XMPP(Jabber)
 
Just an update...

Works great! Should be approved

milvaen 04-04-2010 23:51

Re: Call Admin with XMPP(Jabber)
 
It shows
Quote:

Has attempted to Call an Admin with the following message "test"
but nothing happens, even no error..

Maybe i set up wrong values in index.php, can someone show an example please, thanks.


All times are GMT -4. The time now is 20:53.

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