skit3000 Posted September 28, 2003 Share Posted September 28, 2003 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... Link to comment
Gun-Nut Posted September 28, 2003 Share Posted September 28, 2003 what do i edit in the config.php? i get Saving statsfile: public_html/stats.php. Failed opening statsfile: public_html/stats.php for writing http://www.crwteam.com/gta/index.php Link to comment
Guest Posted September 28, 2003 Share Posted September 28, 2003 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... ?> Link to comment
Gun-Nut Posted September 28, 2003 Share Posted September 28, 2003 yeah i done that but then it don't auto update Link to comment
skit3000 Posted September 29, 2003 Author Share Posted September 29, 2003 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... Link to comment
skit3000 Posted September 29, 2003 Author Share Posted September 29, 2003 Another update, now you can also add a picture to the background and make the table in which the scores are, transparant. Download it [ here ]. Screenshot: Link to comment
Guest Posted September 30, 2003 Share Posted September 30, 2003 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 c'mon, tell me... Link to comment
skit3000 Posted September 30, 2003 Author Share Posted September 30, 2003 You don't understand nothing? So you do understand it? 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... Link to comment
Guest Posted September 30, 2003 Share Posted September 30, 2003 Ok I uploaded all the php file to my site, but I do not get any thing when I go to the site. Can some one help me out I am new to php, but I am ok with html so what am I doing wrong http://ledohost.com/2yysforu/index.php Link to comment
skit3000 Posted October 1, 2003 Author Share Posted October 1, 2003 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... Link to comment
Recommended Posts