Disallow specific operating systems

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
Disallow specific operating systems
What does it do?
It basically kicks clients that are using a specific operating system.


How can I start it?
Simply run the botOS.sh file with either start or stop as parameter.

Requirements

Code:
- PHP 5.2.1 or later (could also work with other versions)
- TeamSpeak 3 Server Query Account with Permissions:
     b_virtualserver_client_list
     i_client_kick_from_server_power

I could need some help finding the names or IOS and OS X users. Please pm me if you know these names or if you're using one of these operating systems.

Download
 

hamza32231

Active Member
Jan 13, 2016
16
0
75
hi its so good . can u edit it if non activited client_platform luinx move him to 「Activation 」 Linux [ 2 ]
and windows move him to 「Activation 」 Windows [ 1 ]
like this i mine thanks you
 

0x0539

Retired Staff
Contributor
Jan 30, 2016
1,334
1,146
254
Code:
"client_platform" => "iOS"
"client_platform" => "OS X"

Is this what you were looking for?
 

adonradon

Member
Jul 13, 2016
27
17
50
If u need help about exception some UNIQ ID
PHP:
<?php
require('ts3admin.class.php');
require('config.php');

$tsAdmin = new ts3admin($ts3['ip'], $ts3['queryport']);

if($tsAdmin->getElement('success', $tsAdmin->connect())) {
    $tsAdmin->login($ts3['user'], $ts3['pass']);
    $tsAdmin->selectServer($ts3['port']);
    $tsAdmin->setName($ts3['name']);
   
    while(true){
        $clients = $tsAdmin->clientList("-info -uid");
        foreach($clients['data'] as $client) {
            if($cfg['kickLinux']){
                if($client['client_platform'] == "Linux" && $client['client_unique_identifier'] != "UNIQIDHERE"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
            if($cfg['kickWindows']){
                if($client['client_platform'] == "Windows"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
            if($cfg['kickAndroid']){
                if($client['client_platform'] == "Android"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
        }
    }
}
?>
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
If u need help about exception some UNIQ ID
PHP:
<?php
require('ts3admin.class.php');
require('config.php');

$tsAdmin = new ts3admin($ts3['ip'], $ts3['queryport']);

if($tsAdmin->getElement('success', $tsAdmin->connect())) {
    $tsAdmin->login($ts3['user'], $ts3['pass']);
    $tsAdmin->selectServer($ts3['port']);
    $tsAdmin->setName($ts3['name']);
  
    while(true){
        $clients = $tsAdmin->clientList("-info -uid");
        foreach($clients['data'] as $client) {
            if($cfg['kickLinux']){
                if($client['client_platform'] == "Linux" && $client['client_unique_identifier'] != "UNIQIDHERE"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
            if($cfg['kickWindows']){
                if($client['client_platform'] == "Windows"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
            if($cfg['kickAndroid']){
                if($client['client_platform'] == "Android"){
                    $tsAdmin->clientKick($client['clid'], "server", $cfg['kickmessage']);
                }
            }
        }
    }
}
?>
I'm gonna implement an advanced version of this in the next version that supports IOS and OS X.
 
Top