Results 1 to 2 of 2

Thread: How to check amount of players in another server?

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    How to check amount of players in another server?

    Hi all,

    Voron made the nannybot that checks the amount of players in another server and print it in a message. Filthy_freak did the same in his meatbot server. How can I make this? I have no idea where to start

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Just parse the result of \xff\xff\xff\xffgetstatus result: http://killtube.org/showthread.php?2...ng-server-info

    Easiest way is probably to system("php your_script_to_dump_the_info.php > result.txt"); and read in the result.txt via fopen etc.

    voron updated the system() function to directly return the string, so you could merge his changes into your libcod version
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    Ni3ls (1st January 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •