1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 13:53:35 +02:00

Update README.md

This commit is contained in:
Pavel
2012-10-22 16:15:25 +03:00
parent 083bca95f1
commit e27db7670f
-27
View File
@@ -21,33 +21,6 @@ The class also allows you to query servers using RCON although this only works f
* [Minecraft](http://www.minecraft.net/) **(RCON ONLY!)**
* *and many other games that implement Source Query Protocol*
## Example
```php
<?php
require 'SourceQuery.class.php';
$Query = new SourceQuery( );
try
{
$Query->Connect( 'localhost', 27015, 3, SourceQuery :: GOLDSOURCE );
print_r( $Query->GetInfo( ) );
print_r( $Query->GetPlayers( ) );
print_r( $Query->GetRules( ) );
$Query->SetRconPassword( 'this_is_your_leet_rcon_password' );
echo $Query->Rcon( 'status' );
}
catch( SQueryException $e )
{
echo $e->getMessage( );
}
$Query->Disconnect( );
?>
```
## Functions
<table>
<tr>