Raised This Month: $ Target: $400
 0% 

connect to server rcon via website


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 10-22-2011 , 19:47   connect to server rcon via website
Reply With Quote #1

Is it possible to send a message like this:

changelevel de_dust2

via website ? without any extra module, maybe a plugin ?
reinert is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-22-2011 , 19:54   Re: connect to server rcon via website
Reply With Quote #2

Web mod?

But that has a few security issues.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
8088
Veteran Member
Join Date: Jan 2008
Old 10-22-2011 , 20:25   Re: connect to server rcon via website
Reply With Quote #3

There are several PHP rcon snippets and classes floating around, of which some are mentioned here: php -> server.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 10-22-2011 at 20:26.
8088 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-23-2011 , 03:03   Re: connect to server rcon via website
Reply With Quote #4

PHP Code:
<?php
    
require 'SourceQuery.class.php';
    
    
$Query = new SourceQuery( );
    
    try
    {
        
$Query->Connect'127.0.0.1'27015 );
        
$Query->SetRconPassword'123' );
        
        echo 
$Query->Rcon'changelevel de_dust2' );
    }
    catch( 
SQueryException $e )
    {
        echo 
"FAIL: " $e->getMessage( );
    }
    
    
$Query->Disconnect( );
?>
https://github.com/xPaw/PHP-Source-Query-Class
__________________

Last edited by xPaw; 10-23-2011 at 03:04.
xPaw is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 10-25-2011 , 11:17   Re: connect to server rcon via website
Reply With Quote #5

How to get response for your commands with this library ? Can you make a short example please ?
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
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 15:35.


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