Raised This Month: $7 Target: $400
 1% 

Call Admin with XMPP(Jabber)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Kilandor
Member
Join Date: Sep 2009
Plugin ID:
1446
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to call an admin with a message which is sent to XMPP(Jabber)
    Old 02-02-2010 , 16:16   Call Admin with XMPP(Jabber)
    Reply With Quote #1

    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
    Attached Files
    File Type: txt call_admin_xmpp.phrases.txt (1,002 Bytes, 1266 views)
    File Type: zip index.zip (788 Bytes, 1534 views)
    File Type: sp Get Plugin or Get Source (call_admin_xmpp.sp - 1064 views - 7.3 KB)
    File Type: smx call_admin_xmpp.smx (6.6 KB, 1077 views)
    __________________

    Last edited by Kilandor; 09-13-2010 at 13:32. Reason: Update to version 1.1
    Kilandor is offline
    citkabuto
    Junior Member
    Join Date: Dec 2009
    Old 02-02-2010 , 16:20   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #2

    Impressed you got this working so quick - will give it a try later - thanks!

    /CK
    citkabuto is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 03-01-2010 , 19:11   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #3

    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.
    snelvuur is offline
    tcviper
    Veteran Member
    Join Date: Oct 2005
    Location: Netherlands
    Old 03-02-2010 , 10:37   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #4

    Now it would be even cooler if you could type back to the user ingame from for example Google Talk
    __________________
    tcviper is offline
    Send a message via MSN to tcviper
    karuru
    Junior Member
    Join Date: Feb 2010
    Old 03-02-2010 , 11:16   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #5

    can i have more xmpp users with this plugin? (more admins)
    __________________
    My Jabber ID: [email protected]
    karuru is offline
    Send a message via ICQ to karuru Send a message via MSN to karuru
    bouncer
    Veteran Member
    Join Date: Apr 2009
    Old 03-02-2010 , 23:09   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #6

    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.
    __________________


    bouncer is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 03-04-2010 , 12:43   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #7

    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 View Post
    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."

    Last edited by bman87; 03-04-2010 at 14:11.
    bman87 is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 03-04-2010 , 13:16   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #8

    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

    Last edited by bman87; 03-04-2010 at 14:11.
    bman87 is offline
    bman87
    Senior Member
    Join Date: Dec 2008
    Location: Michigan
    Old 03-11-2010 , 14:18   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #9

    Just an update...

    Works great! Should be approved
    bman87 is offline
    milvaen
    Junior Member
    Join Date: Jun 2009
    Old 04-04-2010 , 23:51   Re: Call Admin with XMPP(Jabber)
    Reply With Quote #10

    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.

    Last edited by milvaen; 04-05-2010 at 00:04.
    milvaen is offline
    Reply


    Thread Tools
    Display Modes

    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 04:39.


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