Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Socket {
- public static $sock;
- public static function Connect(){
- self::$sock = fsockopen("199.83.49.163", "666", $ERRNO, $ERRSTR );
- }
- public static function sendItem($itemid,$persoid){
- if(self::$sock == null)
- self::Connect ();
- fwrite(self::$sock, "ZO:21:1:".$itemid.":".$persoid.";");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement