Guest User

Untitled

a guest
Oct 20th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1.  
  2. <?php
  3.     require_once('Pickle.php');
  4.     $p = new Pickle();
  5.     $BotName = "Ashley";
  6.     $BotPass = "YouSillyGooseYouCantHaveMyPassword :D";
  7.     $CPPSBot = "Trillion";
  8.     define('LOGIN_SERVER', "184.22.251.146:6112");
  9.     define('GAME_PORT', 6113);
  10.    
  11.     $p->connect($BotName, $BotPass, LOGIN_SERVER, GAME_PORT);
  12.     echo "Welcome to the Live Feed Project CLI Version without SQL by Ashley\n\n";
  13.     sleep(2);
  14.     $p->joinRoom(100);
  15.     $rooms =  "100%110%111%120%121%130%200%220%221%230%300%310%320%330%400%410%411%800%801%802%803%804%805%806%807%808%809%810%420%421";
  16.     $rooms  = explode("%", $rooms);
  17.     for ($i = 0; $i <= 29; $i++) {
  18.         $p->joinRoom($rooms[$i]);
  19.         $ourRoom = $globrooms[$rooms[$i]]['name'];
  20.         echo "\nThere are ", sizeof($p->arrPlayers)-3," players in the $ourRoom\n";
  21.         foreach($p->arrPlayers as  $objPeng)  {
  22.             $user = $objPeng->getUsername();
  23.             if ($user != NULL){
  24.                 if ($user != $BotName)
  25.                     if($user != $CPPSBot)
  26.                     echo $objPeng->getId(), ": $user\n";
  27.                 }
  28.                 unset($p->arrPlayers);
  29.                 }
  30.             }
  31.     print("\n>Done scanning rooms!\n");
  32.     while(true) {}
  33. ?>
Add Comment
Please, Sign In to add comment