Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $q = new LUQuery("IP_HERE",PORT);
- if ($q->IsAlive()) { //Check if server is online
- $data = $q->GetInfo(); //Query the server and storing the info into an variable
- $data returns: (example)
- Array
- (
- [GameID] => 1
- [ServerName] => GTA.ru Freeroam LU Server
- [ServerMode] => Deathmatch
- [ServerPlayers] => 1
- [ServerMaxPlayers] => 64
- [Player] => Array
- (
- [1] => Array
- (
- [ExtraFlags] => 61
- [ID] => 6
- [Nick] => vit47
- [Team] => 0
- [Score] => 1
- [Kills] => 0
- [Deaths] => 0
- [Ping] => 79
- [Pos] => Array
- (
- [X] => 286.87033081055
- [Y] => -1107.2081298828
- [Z] => 25.539543151855
- )
- [Health] => 98
- [Armour] => 0
- [Skin] => 0
- )
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement