Connect( SERV_IP, SERV_PORT, TIME_OUT, SourceQuery :: GOLDSOURCE ); // Connection
$query -> SetRconPassword( SERV_RCON ); // We set the RCON
$query -> Rcon( 'php_results '. $s_index .' '. $item.' '. $ip ); // We send the command
}
catch( SQueryException $e )
{
echo $e -> getMessage( );
}
$query -> Disconnect( ); // Disconnection
}
else // ... item = current player's class, we redirect the player to the main page
{
header( 'Location: '. $_SERVER[ 'PHP_SELF' ] .'?index='. $s_index .'&class='. $s_class .'&ip='. $s_ip .'' );
}
}
else
{
$classesName = array( "M4A1 + USP", "Ak47 + GLOCK", "FAMAS + DEAGLE", "GALIL + DEAGLE" );
for( $x = 0; $x < count( $classesName ); $x ++ )
{
Echo "". $classesName[ $x ] ."
";
}
}
?>