Jump to content

My smalls PHP scripts


Guest FBIErick

Recommended Posts

Hi,

I have started to creat 4 PHP scripts today, Visit Website

-MTA Easy Stats: Easy PHP script for get mta server status (on or off, servername, connected, places, players list and mroe...).

-MTA List Servers: Small PHP script with MySQL database, for creat server list for your favorites servers.

-MTA Panel Servers: Panel written in PHP, it's possible to creat users for control servers form website (config, start and clsoe server only).

-MTA Images Servers: Small PHP script for creating server status image (you need GD module).

MTA Easy Stats 1.0 it's finish, it's so very easy to add stats

1- Download it here.

2- Unzip enywhere.

3- Open index.php, and see it's easy :wink: .

it's possible to creat a mix example:

include ("mta.php");
$server1 = mtaserver("serverip1","serverport1",""Connected"","closed server sry");
$server2 = mtaserver("serverip2","serverport2",""Connected"","closed server sry");
$numbertwoserver = $server1 + $server2;
echo $numbertwoserver;
// Its for get the total of connected players about the serverip1:serverport1 and serverip2:serverport2

Sorry for my english, im french.

Edited by Guest
Link to comment
Hi,

I have started to creat 4 PHP today, Visit Website

-MTA Easy Stats: Easy PHP script for get mta server status (on or off, servername, connected, places, players list and mroe...).

-MTA List Servers: Small PHP script with MySQL database, for creat server list for your favorites servers.

-MTA Panel Servers: Panel written in PHP, it's possible to creat users for control servers form website (config, start and clsoe server only).

-MTA Images Servers: Small PHP script for creating server status image (you need GD module).

MTA Easy Stats it's finish, it's so very easy to add stats

1- Download it here.

2- Unzip enywhere.

3- Open index.php, and see it's easy :wink: .

it's possible to creat a mix example:

$numbertwoserver = mtaserver("serverip1","serverport1",""Connected"","closed server sry") + mtaserver("serverip2","serverport2",""Connected"","closed server sry");
echo $numbertwoserver;
// Its for get the total of connected players about the serverip1:serverport1 and serverip2:serverport2

Sorry for my english, im french.

Good Job Erick keep up the good work

Link to comment

ok i understand, i update it now,

It's easy for change structure,

1- open mta.php

2- find line 107

code:

///// Default Config
echo "
$blks[2]


Adress:  " . $ip . ":" . $port . "
Version:   $blks[3] ($blks[5])
Map:   $map
Players:   $blks[7]
Places:   $blks[8]
Pourcent:   $pourcents%
ID
Nick
Score
Ping

You just need to modify :wink:

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...