B1uscr34m

Teamspeak TS 3 TS3 Plugin PHP Script - Nameswitcher

Aug 22nd, 2015
1,628
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $names = file_get_contents("names.txt");
  3. $names = str_replace(" ", "\\s", $names);
  4. $names = str_replace("|", "│", $names);
  5. $names = explode("\n",$names);
  6. $fp = fsockopen("localhost", "25639");
  7. while(1){
  8.     $i = rand(0,count($names)-1);
  9.     if($i == $lasti){
  10.         if(count($names)-1 == $i){
  11.                 $i--;
  12.         }
  13.         else{
  14.                 $i++;
  15.         }
  16.     }
  17.     $name = $names[$i];
  18.     fputs($fp,"clientupdate client_nickname=".$name."\n");
  19.     sleep(10);// usleep(50000);
  20.         $lasti = $i;
  21. }
  22. fclose($fp);
  23. ?>
RAW Paste Data