Jump to content

MTASG stats update...


skit3000

Recommended Posts

Posted

Hi all, I updated the MTASG stats script a bit, so it automatic updates itself in steed of running the update script every minute. The new script also adds the total number of points users have. You can specify how much points they get for a kill, being killed or commiting suicide...

For the people who want to download it, click [ here ].

After downloading, unzip it into the folder of your HTTP server, change the config.php file, and up you go... :)

Posted

you have to upload your mtasderver.txt file and edit you config

ex:

<?

$pagetitle		=	"Stats for '!servername'";			// THe title of the page. Use !servername to display the name of the server...
$adminmessage		=	"Message of the day: Have fun...  and don't die";

$logfile 		= 	"mtaserver.log";		// Path to server log file to read
$statsfile 		= 	"public_html/stats.php";			// Path to stats page to write
$theme 			= 	"black";					// Name of theme to use (black, red, sky)

$updatetime 		= 	"60";						// Interval between two updates...

$pointsforkill		=	"1";						// Number of points people get when they kill somebody...
$pointsfordeath		=	"1";						// Number of points people pay when they are killed...
$pointsforsuicide	=	"2";						// Number of points people pay when commiting suicide...

?>

Posted

That's because the script must have access to the mtaserver.log file (which is in your MTA directory). You can not run this script on another server than where your MTA server is on, unless you have a network connection between...

Posted

I dont understanfd nothing... I downloaded a config.php file, an mtasg.php file and the themes... i extracted the zip using the "extract here" command. It extracted it into a folder named something. Tell me the whole thing from here, i didn't get no readme :P c'mon, tell me...

Posted

You don't understand nothing? So you do understand it? :wink: Well, just open the config.ini file with Notepad and fill in the values. Be sure to extract the package into a directory which can be viewed by a webserver... :)

Posted

I get this:

Failed opening statsfile: public_html/stats.php for writing

I think that's because you haven't done a CHMOD on the stats.php file (which you should do on a Linux server)... Just use the highest value you can get, then it should work...

  • Recently Browsing   0 members

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