ringo Posted July 30, 2013 Share Posted July 30, 2013 Nice! Looks Good. Link to comment Share on other sites More sharing options...
Jaggl Posted July 31, 2013 Share Posted July 31, 2013 thx :=) Link to comment Share on other sites More sharing options...
nmo0ory Posted August 25, 2013 Share Posted August 25, 2013 i want theis ! Link to comment Share on other sites More sharing options...
Raizio Posted August 26, 2013 Share Posted August 26, 2013 i want theis ! Ringo's post has all that you need, mate. Ringo, thanks for this beautiful piece of code. Link to comment Share on other sites More sharing options...
votick Posted December 29, 2013 Author Share Posted December 29, 2013 Anyone got a script for showing stats for servers owned by a certian user id. E.g. I want to show the status and player count on a website for demo servers owned by the admin account. I seem to get multiple results for the same server (some wrong). GMod Server (0/0) GMod Server (0/0) GMod Server (0/) GMod Server (0/) GMod Server (2/6) GMod Server (2/6) GMod Server (0/8) GMod Server (0/8) GMod Server (0/0) GMod Server (0/0) And I can't seem to grab the ip or port from the mysql table. I'll give it another shot tomorrow. Link to comment Share on other sites More sharing options...
ringo Posted December 30, 2013 Share Posted December 30, 2013 It should probably be possible. I'll have to play around with it and see if I can't work something up. Link to comment Share on other sites More sharing options...
votick Posted December 30, 2013 Author Share Posted December 30, 2013 That would be a great help. Don't quite fully get all this table calling and stuff xD Link to comment Share on other sites More sharing options...
votick Posted January 1, 2014 Author Share Posted January 1, 2014 Here's what I have t the moment: <?php mysql_connect("ADDRESS", "USER", "PASSWORD") or die(mysql_error()); mysql_select_db("DATABASE") or die(mysql_error()); $result = mysql_query("SELECT s.ip_address,s.game_port,g.display_name,g.query_protocol,g.game_id,ls.online,ls.map,ls.name,ls.max_players,ls.players,ls.service_id FROM tc_game_services s INNER JOIN tc_games g ON s.game_id = g.game_id INNER JOIN tc_game_service_live_stats ls ON s.service_id = ls.service_id WHERE online = 1 ORDER BY g.display_name ASC, ls.name ASC") or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo "<li><img src='images/gameimages/mini/16/" . $row['game_id'] . ".png' border='0' width='16px' height='16px' /> <a href='http://www.gametracker.com/server_info/" . $row['ip_address'] . ":" . $row['game_port'] . "' target='_blank'>" . $row['ip_address'] . ":" . $row['game_port'] . "</a> (" . $row['players'] . "/" . $row['max_players'] . ")</li>"; } ?> So I have the address and online/max slots. Only thing I'm having trouble with is showing only the results by userid 15. Anyone shed any light? Link to comment Share on other sites More sharing options...
nmo0ory Posted August 31, 2014 Share Posted August 31, 2014 how to add it to whmcs ? tpl file ? Link to comment Share on other sites More sharing options...
Jaggl Posted October 18, 2014 Share Posted October 18, 2014 see this page: http://clientforums.tcadmin.com/showthread.php?t=9692&page=3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now