Resource icon

Advert | SCRIPT 1.6

No permission to download
Preview:

Coming soon...


Code:
Code:
<?PHP
/**
  * Teamspeak3_Advert.php
  *
  * Is a small script that sends a message in the Serverchat every x seconds.
  *
  * by iKaros - <[email protected]> with the ts3admin.class framework <http://ts3admin.info/>
  *
*/

/*-------SETTINGS-------*/
$ts3_ip = '127.0.0.1';
$ts3_queryport = 10011;
$ts3_user = 'username';
$ts3_pass = 'password';
$ts3_port = 9987;
/*----------------------*/
   
$xyz = 1;

#Include ts3admin.class.php
require("../lib/ts3admin.class.php");



while($xyz == 1) {
#build a new ts3admin object
$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);

if($tsAdmin->getElement('success', $tsAdmin->connect())) {
    #login as serveradmin
    $tsAdmin->login($ts3_user, $ts3_pass);
   
    #select teamspeakserver
    $tsAdmin->selectServer($ts3_port);
   
    #get clientlist
    $clients = $tsAdmin->clientList();
   
        #getServerID   
        $serverInfo = $tsAdmin->serverInfo();
        $serverID = $serverInfo['data']['virtualserver_unique_identifier'];
   
        #set Nickname of the Bot
        $tsAdmin->setName("AdvertScript");
        #Message to send.
        $messageToSend = "I love iKaros because i am using this script.";
                           
   
    #send message.
    $tsAdmin->sendMessage(3,(string)$serverID[0],$messageToSend);
}
// amount of time to wait before sending message again, in seconds.
sleep(15);                                
}

About it:

This script allows you to send messages automatically to all servers that you have hosted. This is ideal for free teamspeak hostings or various alerts such as reboots.

This script can not be sold, or any other type of income obtained without the exclusive permission of its own author (iKaros).



Do you have problems or doubts? Leave it in the comments and I will answer you.

Do you want to donate? Open me PM

Do you want to collaborate? Leave in the comments everything you want to say or contribute.

Changelog:

10/08/2018 |/\| Script release
Author
iKaros
Downloads
38
Views
1,677
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from iKaros

Top