Online.php

Discussion in 'Help' started by untq, Dec 16, 2010.

  1. untq

    untq AdvExt64 Customers (IL)

    Hello.
    Who had php script which doing online.txt with online on server?
    I deleting my staff..
     
  2. FidoW

    FidoW AdvExt64 Customers (IL)

    You deleting what?
     
  3. Fr3DBr

    Fr3DBr Guest

    He said he deleted it by mistake =o
     
  4. Nish

    Nish AdvExt64 Customers (IL)

    he deleted his staff :p
     
  5. untq

    untq AdvExt64 Customers (IL)

    yes, and i need this now :)
     
  6. FidoW

    FidoW AdvExt64 Customers (IL)

    i deleted my dog
     
  7. untq

    untq AdvExt64 Customers (IL)

    very funny ahahahha
     
  8. Renobizarro

    Renobizarro AdvExt64 Customers (IL)

    =O

    no u're just "Fi", coz u have no dog now, cannot be FidoG anymore D:
     
  9. FidoW

    FidoW AdvExt64 Customers (IL)

    The pronunciation is in fact Fidou, not Fidog, but whatever with your mind.
     
  10. untq

    untq AdvExt64 Customers (IL)

    are you retards ?
     
  11. Nish

    Nish AdvExt64 Customers (IL)

    are you retarded ?

    your the one that deleted your staff lol
     
  12. Falcon

    Falcon AdvExt64 Customers (GF/GE/HF)

    From Falcon with Love :D

    Code:
    function bartz_online()
    {
    	$fs=@fsockopen('server.ip.wehe','serverport',$ERROR_NO,$ERROR_STR,3);
    	$pck=pack("vCi",6,0x0E,-3);
    	fwrite($fs,$pck);
    	$r=fread($fs,73);
    	fclose($fs);
    	$a=unpack("vsize/Cid/iworld/imax/icurrent/iplaying/istore",$r);
    	return $a['current'];
    }
    $fp = fopen('full/patch/wher/script/save/file.txt', 'w');
    fwrite($fp, bartz_online());
    fclose($fp);
    
    $fp = fopen('full/patch/wher/script/save/file.txt', 'w'); - Selece pleace wher save file with online counter

    But if you wont display this on your sete, you need read manual file-get-contents


    http://en.l2error.com/
     
  13. Falcon

    Falcon AdvExt64 Customers (GF/GE/HF)

    Also this function better then usage mssql quere. No load on mssql db every time when someone update your site and if you good understand what are you doing - more safety because no any link to DB from your www.

    And i want say Thanks to Hoaz for granted server packet
     
  14. untq

    untq AdvExt64 Customers (IL)

    because it was too much time ago.

    tnx man
     
  15. loest

    loest New Member

    so i was playing around with this and i wanna know if i can get the max user while server is up

    i did this:
    Code:
    printf("ServerName: %s - Current: %d - Store: %d - Max %d\n", $name, $a['playing'], $a['store'], $a['max']);
    but imax isn't the max number of players that ever connect, it is the socket connections number, so i don't know what is the proper way to get this packet can any one help me out^^

    ps. im doing this actualy for fun, i kind need to start learning php anyways :p
     
  16. untq

    untq AdvExt64 Customers (IL)

    and if who had script with ussage mssql plz write too. tnx
     
  17. untq

    untq AdvExt64 Customers (IL)

    delete 12345
     
    Last edited: Dec 22, 2010