Jump to content

uhmpr0

Members
  • Posts

    2
  • Joined

  • Last visited

Details

  • Gang
    PtPM

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

uhmpr0's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. uhmpr0

    [REL] Snow 1.0.3

    is nice and christmas etc etc
  2. Sorry to bump this, but the script works perfectly fine. I'm posting this for people who want this thing to get to work but don't know how to. This is a list of thing you'll need to remember when you're going to use this: Copy paste the code from that gamemonitor thread Put the code in a .php file with php tags around it To actually get variables use the following: $data = mta_getServer("127.0.0.1","22003"); Now the type of information is probably not what you're used to, it's not a string nor an array, but it's a class. Now this is the code you want: echo $data->players . "/" . $data->maxplayers; Instead of players or maxplayers you can also use: gameshort (type of game (mta)), port, name (server name), map and public (0 = private, 1 = public). There's also something called rules, this is an array with stuff like the name of the gamemode and the version, so to get the gamemode name out of "rules" use: $data->rules["game"]; Note the quotes around game! For a full overview of what the query returns use: print_r($x);
×
×
  • Create New...