MahmouD
Member
- Feb 11, 2016
- 77
- 5
- 56
https://r4p3.net/threads/remake-of-the-teamspeak-php-tool.287/#post-17738no, I don't want it like that I want it to poke all users in the TeamSpeak plz
https://r4p3.net/threads/remake-of-the-teamspeak-php-tool.287/#post-17738no, I don't want it like that I want it to poke all users in the TeamSpeak plz
hASVAN, contact me, have some questions for you. I think you know mei will do that for you to night
@hASVAN I want this script to give rank in the server group by typing cmds in the chat. example : if i type in the chat number 1 i will get League of Legend rank.. and the maximum ranks is 4 of 20 .. and if he typed number 1 again the rank will be removedExample:PHP:<?php require_once("TeamSpeak3/TeamSpeak3.php"); //--------INFO------------// $login_name = 'serveradmin'; $login_password =''; $ip = '127.0.0.1'; $query_port = '10011'; $virtualserver_port = '9987'; $bot_name = 'TS3hASVANBot'; $ts3helpchannel = "94"; //--------INFO------------// $ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$login_name.":".$login_password."@".$ip.":".$query_port."/?server_port=".$virtualserver_port."&nickname=TEST&blocking=0"); $ts3botid = $ts3_VirtualServer->whoamiGet('client_id'); $ts3_VirtualServer->clientMove($ts3botid, $ts3helpchannel); $arr_ClientList = $ts3_VirtualServer->clientList(array("client_platform" => "ServerQuery")); foreach($arr_ClientList as $ts3_Client) { if($ts3_Client['client_nickname'] == $bot_name) { $ts3_VirtualServer->request("quit"); exit; } } $ts3_VirtualServer->selfUpdate(array("client_nickname" => $bot_name)); TeamSpeak3_Helper_Signal::getInstance()->subscribe("serverqueryWaitTimeout", "onWaitTimeout"); TeamSpeak3_Helper_Signal::getInstance()->subscribe("notifyTextmessage", "onTextMessage"); $ts3_VirtualServer->notifyRegister("server"); $ts3_VirtualServer->notifyRegister("channel"); $ts3_VirtualServer->notifyRegister("textserver"); $ts3_VirtualServer->notifyRegister("textchannel"); $ts3_VirtualServer->notifyRegister("textprivate"); while(1) { $ts3_VirtualServer->getAdapter()->wait(); } function onWaitTimeout($time, TeamSpeak3_Adapter_Abstract $adapter) { if($adapter->getQueryLastTimestamp() < time()-300) { $adapter->request('clientupdate'); } } function onTextMessage(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3_Node_Host $host) { $info = $event->getData(); $srv = $host->serverGetSelected(); if($info["targetmode"] == 2) { $mystring = $info["msg"]; $pos1 = strpos($mystring, " "); if($pos1 > 0){ $var = substr($mystring, 0, $pos1); }else{ $var = $mystring; } if($var == "!say"){ $srv->message("".str_replace('!say ', '', "[b][color=green]".$info["msg"]."[/color][/b]").""); }elseif($var == "!kick"){ $client = str_replace('!kick ', '', $info["msg"]); foreach($srv->clientList() as $ts3_Client) { if($client == $ts3_Client) { $srv->clientGetByName("".$client."")->kick(TeamSpeak3::KICK_SERVER, ""); }else{ $srv->clientGetByName($info["invokername"]->toString())->message("User Not found"); } } }else{ $srv->clientGetByName($info["invokername"]->toString())->message("Command Not found"); } } } ?>
can you pm me with skype or discord or teamspeak so i can speak with you?if you need any help with the script or you want to code any kind of script like that send me message
Example:PHP:<?php require_once("TeamSpeak3/TeamSpeak3.php"); //--------INFO------------// $login_name = 'serveradmin'; $login_password =''; $ip = '127.0.0.1'; $query_port = '10011'; $virtualserver_port = '9987'; $bot_name = 'TS3hASVANBot'; $ts3helpchannel = "94"; //--------INFO------------// $ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$login_name.":".$login_password."@".$ip.":".$query_port."/?server_port=".$virtualserver_port."&nickname=TEST&blocking=0"); $ts3botid = $ts3_VirtualServer->whoamiGet('client_id'); $ts3_VirtualServer->clientMove($ts3botid, $ts3helpchannel); $arr_ClientList = $ts3_VirtualServer->clientList(array("client_platform" => "ServerQuery")); foreach($arr_ClientList as $ts3_Client) { if($ts3_Client['client_nickname'] == $bot_name) { $ts3_VirtualServer->request("quit"); exit; } } $ts3_VirtualServer->selfUpdate(array("client_nickname" => $bot_name)); TeamSpeak3_Helper_Signal::getInstance()->subscribe("serverqueryWaitTimeout", "onWaitTimeout"); TeamSpeak3_Helper_Signal::getInstance()->subscribe("notifyTextmessage", "onTextMessage"); $ts3_VirtualServer->notifyRegister("server"); $ts3_VirtualServer->notifyRegister("channel"); $ts3_VirtualServer->notifyRegister("textserver"); $ts3_VirtualServer->notifyRegister("textchannel"); $ts3_VirtualServer->notifyRegister("textprivate"); while(1) { $ts3_VirtualServer->getAdapter()->wait(); } function onWaitTimeout($time, TeamSpeak3_Adapter_Abstract $adapter) { if($adapter->getQueryLastTimestamp() < time()-300) { $adapter->request('clientupdate'); } } function onTextMessage(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3_Node_Host $host) { $info = $event->getData(); $srv = $host->serverGetSelected(); if($info["targetmode"] == 2) { $mystring = $info["msg"]; $pos1 = strpos($mystring, " "); if($pos1 > 0){ $var = substr($mystring, 0, $pos1); }else{ $var = $mystring; } if($var == "!say"){ $srv->message("".str_replace('!say ', '', "[b][color=green]".$info["msg"]."[/color][/b]").""); }elseif($var == "!kick"){ $client = str_replace('!kick ', '', $info["msg"]); foreach($srv->clientList() as $ts3_Client) { if($client == $ts3_Client) { $srv->clientGetByName("".$client."")->kick(TeamSpeak3::KICK_SERVER, ""); }else{ $srv->clientGetByName($info["invokername"]->toString())->message("User Not found"); } } }else{ $srv->clientGetByName($info["invokername"]->toString())->message("Command Not found"); } } } ?>
@hASVAN I want this script to give rank in the server group by typing cmds in the chat. example : if i type in the chat number 1 i will get League of Legend rank.. and the maximum ranks is 4 of 20 .. and if he typed number 1 again the rank will be removed
im guys really busy now i will try to help you guys soon.. 3 days max pm me in priv message and i will try to help youcan you pm me with skype or discord or teamspeak so i can speak with you?
I tried it already, but i dont know how I can set a welcome message just for a special group and make the command just available for this group..
i don't tried it, but it should work:I need the script work for Ever No EXIT ! How ! i need him Bot.sh <<<
was a bug edited my last post and it creates a new post (double post arent good) ^^you can change it