Jump to content

Patrick

Founder
  • Content Count

    1,281
  • Donations

    £0.00 
  • Joined

  • Last visited

  • Days Won

    131
  • Country

    United Kingdom

Posts posted by Patrick


  1. Hey @Sn|pe

     

    Yeah I purchased the Vs3 domain quite some time ago now, after I was in the clan for a good while. We previously had the old forums up in an archived state so you could view old topics but unfortunately it became too dated and insecure to keep online. 


  2. 11 hours ago, PanzerWahoo said:

    I know quite a number of channels were recently deleted, and "13AD - Platoon 3" is one of them. I don't know why.

     

    Inactive channels are often deleted when I run my deletion script.

     

    You should be using sub-channels for this structure anyway, I've moved platoon 1 & 2 under 13AD. Using your channel owner permission you can create more sub-channels now as you require. 


  3. image.png

    <?php
    // load framework library
    require_once("TeamSpeak3/TeamSpeak3.php");
    
    try
    {
    #Set your  IP & Port here, don't edit any of the format below or it will break rainmeter code.
    $ip_query = 'localhost:10011';
    $port = 9987;
    
    
    $ts3 = TeamSpeak3::factory("serverquery://$user:[email protected]$ip_query/?server_port=$port&nickname=Server-Status-Desktop");
     // show server as online
      echo "<title>Server Status:" . " Online" . "</title>\n";
      echo "<title>Server Uptime: " . TeamSpeak3_Helper_Convert::seconds($ts3->virtualserver_uptime) . "</title>\n";
      echo "<title>Current Clients: " . $ts3->virtualserver_clientsonline . " / " . $ts3->virtualserver_maxclients . "</title>\n";
    
      $PL = $ts3->getProperty("virtualserver_total_packetloss_total");
      $Output = (string)$PL;
      $Rounded = round($Output,3);
    
      $Output = ($Rounded * 100) . '%';
      echo "<title>Packet Loss: " . $Output . "</title>\n";
    }
    catch(Exception $e)
    {
      // grab errors and show server as offline
    echo "<title>Server Status:" . "" . " Offline</title>\n";
    echo "<title></title>\n";
    echo "<title></title>\n";
    echo "<title></title>\n";
    }
    ?>

     

    I've attached the rainmeter package file to this post. 

     

    README for rainmeter:

     

    Edit line 6 with the URL path to your server-status script.
    
    Edit line 46 with your server max clients so:
    
    Formula=(MeasureClientsBar/512) * 100
    
    If you have 128 max clients change the above to:
    
    Formula=(MeasureClientsBar/128) * 100

     

    TeamSpeak Server Status_1.0.rmskin

     

    PHP Dependency: https://github.com/planetteamspeak/ts3phpframework


  4. Just now, Narckos said:

    Hello, my user is Narcos, I did the privilege code, and he replies that I am not the owner of the channel. The channel is Skrotya, and is in auto-generated Section 9.
    Thank you

     

    I can see the key is still valid, are you copying it directly from the email and checking there are no spaces at the start or end? 


  5. Hey,

     

    Just some interesting stats:

     

    Currently 21,102 channels have been created via our website. (Glad I didn't keep doing those manually like I did at the very start..)

     

    This month 1st - 22nd users have spent a total of 11,097 hours chatting with an average of 9.9 hours per user. 

     

    Gandalf has the most bets with 26,082 and a 41% win rate. (Seems like someone autoclicked!)

     

    Our server has seen over 79,707 users connect in total!

     

    Anything else you'd like me to check? 


  6. Would you like a windows app that could be used as an alternative to viewing the website? Would take some time to make but it's possible for me to do in a secure manner which would prevent cheating attempts. 

     

    Would be limited features in the client, but opens the possibility of more features. 

     

    Let me know your thoughts. 

     

    Edit -

     

    How about some form of lottery system too? 


  7. So I've been coding stuff for TeamSpeak in PHP for quite some time so here's some examples that may help you if you've stumbled upon this section from somewhere on the internet. 

     

    In no way is my code perfect, these are just examples of ways I've hacked some stuff together.

     

    Feel free to use any examples wherever you want, I wont be posting full scripts just snippets. 


  8. <?php require 'TeamSpeak3/TeamSpeak3.php';
    
    $user = 'serveradmin';
    $password = 'password';
    $ip_query = '127.0.0.1';
    $port = 9987;
    
    try {$ts3_VirtualServer = TeamSpeak3::factory("serverquery://$user:[email protected]$ip_query/?server_port=$port&nickname=GetNameByIP");
    
      foreach ($ts3_VirtualServer->clientList() as $cl) {
        if ($cl->client_type) continue;
        if ($cl->getProperty('connection_client_ip') == $_SERVER['REMOTE_ADDR']) {
          $result[] = $cl->client_nickname;
          $uid = $cl->client_unique_identifier;
        }
      }
    }
    catch (Exception $e) {
      echo "<p class='error'><b>Error " . $e->getCode() . ":</b> " . $e->getMessage() . "</p>";        die;
    }
    
    if ($result == "" ) {
      exit;
    }
    
    echo "Welcome " . implode(', ', $result) . "<br>";
    echo "Your Unique ID: " . $uid;
    
    ?>

     

×
×
  • Create New...