Advertisement
Neo-Craft

SocketAction

Aug 16th, 2012
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. class Socket {
  2.    
  3.     public static $sock;
  4.    
  5.     public static function Connect(){
  6.         self::$sock = fsockopen("199.83.49.163", "666", $ERRNO, $ERRSTR );
  7.     }
  8.    
  9.     public static function sendItem($itemid,$persoid){
  10.         if(self::$sock == null)
  11.             self::Connect ();
  12.         fwrite(self::$sock, "ZO:21:1:".$itemid.":".$persoid.";");
  13.     }
  14.    
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement