Raised This Month: $51 Target: $400
 12% 

Trash this one


Post New Thread Reply   
 
Thread Tools Display Modes
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 02:08   Re: Trash this one
Reply With Quote #61

I have steam i can run server on steam but
All players didn't have steam because they cant afford.

Last edited by omer; 05-09-2012 at 02:09.
omer is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-09-2012 , 02:12   Re: Trash this one
Reply With Quote #62

Quote:
Originally Posted by omer View Post
I have steam i can run server on steam but
All players didn't have steam because they cant afford.
Excuses don't work here. If they can afford an internet connection then they can also afford Counter-Strike. The homeless guy down the street can afford to buy Counter-Strike.
__________________
fysiks is offline
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 02:35   Re: Trash this one
Reply With Quote #63

Quote:
Originally Posted by fysiks View Post
Excuses don't work here. If they can afford an internet connection then they can also afford Counter-Strike. The homeless guy down the street can afford to buy Counter-Strike.
I dont know but when i change my server to steam only so then my server is mostly empty (warn me if i broke any rule)

Last edited by omer; 05-09-2012 at 02:36.
omer is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 05-09-2012 , 02:38   Re: Trash this one
Reply With Quote #64

You should get banned, no steam = no support.
bazhenov93 is offline
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 02:59   Re: Trash this one
Reply With Quote #65

GordonFreeman (RU)
come in facebook
omer is offline
8088
Veteran Member
Join Date: Jan 2008
Old 05-09-2012 , 08:34   Re: Trash this one
Reply With Quote #66

Quote:
Originally Posted by omer View Post
warn me if i broke any rule
Editing topic titles and removing your posts is rulebreaking in my book. Maybe you should look up the definition of 'forum' before thinking of us as your personal helpdesk again.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 08:39   Re: Trash this one
Reply With Quote #67

OK ThankYou.
__________________


Last edited by omer; 05-09-2012 at 08:39.
omer is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 05-09-2012 , 08:40   Re: Trash this one
Reply With Quote #68

Quote:
Originally Posted by 8088 View Post
http://awesomatic.net/crap/status/styled.php
PHP Code:
<?php
ini_set
("display_errors""2");
ERROR_REPORTING(E_ALL);

require_once(
'JG_Cache.php');
require_once(
'SourceQuery.class.php');

$servers = array(
// add servers like this:
//'server_01' => array ('name' => 'My shitty server', 'ip' => 'abc.example.com', 'port' => '27015'),
  
'server_02' => array('name' => 'My crap server''ip' => '8.6.2.43''port' => '27015'),
  
'server_03' => array('name' => 'My awesome server''ip' => '189.74.29.220''port' => '27015')
);


$i 0;
$rows = array();
foreach (
$servers as $server)
{

  
$cache = new JG_Cache('/tmp');
  
$info $cache->get($server['name'], 60); // second paramater = cache time in seconds

  
if ($info === false)
  {
    
$query = new SourceQuery();
    try
    {
      
$query->Connect($server['ip'], $server['port']);
      
$info $query->GetInfo();
    } catch (
SourceQueryException $e)
    {
      
$info $e->getMessage();
    }
    
$cache->set($server['name'], $info);
  }

  if (
$i == 0)
  {
    
$class 'even';
  }
  else
  {
    
$class 'odd';
  }

  if (
is_array($info))
  {
    
$rows[$i]['class'] = $class;
    
$rows[$i]['ip'] = $server['ip'];
    
$rows[$i]['port'] = $server['port'];
    
$rows[$i]['map'] = $info['Map'];
    
$rows[$i]['players'] = $info['Players'];
    
$rows[$i]['maxplayers'] = $info['MaxPlayers'];
    
$rows[$i]['servername'] = $info['HostName'];
    
$rows[$i]['a_class'] = 'online';
  }
  else
  {
    
$rows[$i]['class'] = $class;
    
$rows[$i]['ip'] = $server['ip'];
    
$rows[$i]['port'] = $server['port'];
    
$rows[$i]['map'] = 'n/a';
    
$rows[$i]['players'] = 'n';
    
$rows[$i]['maxplayers'] = 'a';
    
$rows[$i]['servername'] = $server['name'];
    
$rows[$i]['a_class'] = 'offline';
  }
  
$i++;
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>hi</title>
    <style>
      html, body {
        font:10px Verdana;
      }
      table {
        background-color:#eeeded;
      }
      td, th {
        padding:5px;
      }

      th {
        background-color:#212121;
        color:#fff;
        text-transform:capitalize;
      }
      .odd {
        background-color:#dcdcdc;
      }

      a, a:visited {
        display:block;
        color:#fff;
        background-color:#51a619;
        padding:5px;
        border-radius: 5px;
        border:1px solid #357f07;
        text-decoration:none;
      }
      a.offline {
        background-color:#c51c00;
        border:1px solid #300700;            
      }
      a:hover, a.offline:hover {
        color:#51a619;
        background-color:#fff;
      }
      tfoot td {
        text-align:right;
      }            
    </style>
  </head>
  <body>
    <table>
      <thead>
        <tr>
          <th>server</th><th>players</th><th>map</th><th></th>
        </tr>
      </thead>
      <tbody>
        <?php foreach ($rows as $row): ?>
          <tr class="<?php echo $row['class']; ?>">
            <td><?php echo htmlspecialchars($row['servername']); ?></td>
            <td><?php echo $row['players']; ?>/<?php echo $row['maxplayers']; ?></td>
            <td><?php echo htmlspecialchars($row['map']); ?></td>
            <td>
              <a class="<?php echo $row['a_class']; ?>" href="steam://connect/<?php echo $row['ip'] . ':' $row['port']; ?>" title="connect">connect</a>
            </td>
          </tr>
        <?php endforeach; ?>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="4"><?php echo count($rows) . ' items'?></td>
        </tr>
      </tfoot>
    </table>
  </body>
</html>
@omer: you're a dick
Thanks 8088!!! very much just one thing and i'll leave you in peace lol.. would it be possible for this styled one to also list the player names on it? not a biggie but just wondering.
matrixmark is offline
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 08:44   Re: Want an simple PHP script for website with div id="serverstatus"
Reply With Quote #69

Quote:
Originally Posted by rx1983 View Post
this my model server status:
http://www.csro.com.br/servidores/index.php
Can you give me this one?
__________________

omer is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 05-09-2012 , 08:49   Re: Want an simple PHP script for website with div id="serverstatus"
Reply With Quote #70

Quote:
Originally Posted by omer View Post
Can you give me this one?
I doubt very much he will do that lol. Not one like that anyways and very unlikely for free.
matrixmark is offline
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 18:27.


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