Jump to content

dusty

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by dusty

  1. dusty

    phpMTAS release

    that's cool.. is the server logging any better now? i haven't messed with it since i last worked on phpmtas (which was a long time ago) and i know there were a few bugs then. any new information in the log file?
  2. dusty

    phpMTAS release

    people still trying to use this thing?
  3. Well Bob, the story behind my lack of updates for my stats script is pretty much being swamped at work.. I just didn't have time to do it anymore, I didn't have time to maintain my server anymore and I could think of better things to do with $200+ a month instead of paying for a server I didn't use much. I wouldn't mind tinkering with the script some to get it running again in the latest version whenever I get a chance if someone would like to donate some web space. I have a domain for the script that I planned on using (I believe it was mtastats.com, but I'd have to double check). I'd prefer a unix system that can run a mta server for testing purposes. Needs MySQL and PHP of course. If anyone is interested my e-mail address is dusty at cox dot net.
  4. http://mta.tyyy.org/dev is up, i haven't been around for the last few releases of mta, so i'm not sure how well the script will work. if you spot any problems just let me know.
  5. heh, i released this last october.. my example stats are up at http://mta.tyyy.org you can google phpmtas and find some more sites. i haven't had time to work on it lately so i have no idea how well it works with 0.3 if you have it installed now, i fixed a couple of bugs. you can get the updated files here: http://mta.tyyy.org/dev/update/1.0.beta_2.0/query.txt http://mta.tyyy.org/dev/update/1.0.beta ... ctions.txt just delete query.php and functions.php and rename *.txt to *.php. they've also been repacked.
  6. like what? there will be newer versions as i keep it up to date with new mta releases, but i didn't think there was much else to add to it..
  7. updated to work with 0.3, get it @ http://mta.tyyy.org/dev/
  8. i shut my server down awhile back, i was just too busy to keep it up.. so my stats page is up as an example of what it should look like only. i have no idea if it works with 0.3, i haven't even had time to download 0.3 myself.. so i cannot really provide much support for that.
  9. alright, it's back up rob i was trying to get rdns on that vhost and forgot to setup the website again
  10. sorry guys, i didn't realize that my domain had expired, i renewed it so everything should work ok now
  11. http://dus.tyyy.org/snapshot1.png
  12. i don't think there will be a later version..what else could be done?
  13. in a proper install there shouldn't be any mysql errors, http://city.nwg-nv.ru/mta is a site that i found that uses 2.0 and works fine. mine is installed using the update from beta to 2.0 and works fine. it is still possible that you have errors, i code on this every now and then when i get a chance, and not alot of testing goes into it before a release. if it works on my server, then i release it. originally i didn't plan on releasing anything to the public, but i will still try to give support when needed.
  14. if only you used my stats script, all of your logs would be backed up ;p
  15. He said they weren't targetting MTA, MTA is just a bystander. But if mtavc.com was the target, you wouldn't be doing them a favor by shittalking the persons packetting the site.. that is just adding fuel to the fire.
  16. http://mta.tyyy.org/dev/MTAP/MTAP-1.11.zip works with earlier versions of mIRC now. also displays score/ping for each player. http://mta.tyyy.org/dev/MTAP/mtatimer.mrc is the server timer addon for #mta-servers
  17. UPDATE: i had to make a minor adjustment and repack it, it should be up by tonight, i blame wartech ;P --- it's repacked and back up now, sorry for the inconvenience. The readme below is included in the *update* from 1.0.beta to 2.0, another readme is included with the packaged file. There is no support for stunt servers yet, as there is not much information other than vehicle usage in the log output. The new themes were not packaged with the release to keep file size at a minimum. You can download them below. if you need help you can find me @ irc://irc.multitheftauto.com/dev example stats phpMTAS 2.0 (tar.gz) phpMTAS 2.0 (zip) 1.0.beta to 2.0 patch (tar.gz) 1.0.beta to 2.0 patch (zip) themes and other stuff
  18. dusty

    Translation

    http://mta.tyyy.org/?lang=portuguese.php http://mta.tyyy.org/?lang=portuguese.php&pid=3 could you please look at those 2 pages and make sure everything makes sense? http://mta.tyyy.org/ http://mta.tyyy.org/?pid=3 if you want to compare to the english version
  19. dusty

    Translation

    I'm adding multi language support to phpMTAS, so if you have a minute and you're bilingual could you please translate the following words/phrases? Please only translate if you are fluent in both languages. You will be accredited. here is a template to make it a little easier, just put your translation in the second set of '', ie: define('_RANDOMQUOTE','random quote'); so far i have english, norwegian, portuguese, spanish
  20. so, my irc script shows live stats on a timer ;p
  21. <? function format_player($player) { $player = htmlentities(substr($player,1)); list($name,$score,$ping) = split("||||",$player); $colors = array("ÿÿ"=>"#FF0000"); foreach($colors as $key => $val) { $name = ereg_replace($key,"",$name); } $player = array("score"=>$score,"name"=>$name,"ping"=>$ping); return $player; } $server['ip'] = $_GET['ip']; $server['port'] = $_GET['port']; $fp = @fsockopen("udp://" . $server['ip'], $server['port'] + 123); if(!$fp) { die("No Response"); } else { fwrite($fp,"s"); $data = fread($fp,4096); $data = preg_replace("/{5}\??|\?/","/////",$data); $data = explode("/////",$data); $raw = preg_replace("/^EYE1??(gta3)?mta\" . $server['port'] . "||||/","/////",$data[0]); list($null,$server['name'],$server['version'],$null,$server['current'],$server['max']) = explode("/////",$raw); $server['players'] = array_slice($data,1); } echo ""; print_r($server); echo "\n\nActual Player Output:\n"; for($i=0;$i<$server['current'];$i++) { $temp = format_player($server['players'][$i]); print_r($temp); echo "\n"; } echo ""; ?> updated to work with 0.2.2 which now shows score/ping!
  22. when you're looking for a job alot of times you need to be knowledgeable in several different languages. when it comes to meeting the needs of your clientele and their request, your language of choice doesn't really matter.
  23. don't be scared to use regex, they can save you alot of time :] but they seem to both work the same way, my coloring function will color multicolored names as well, just coded differently..
  24. function color($name) { $colors = array("ÿÿ"=>"#FF0000"); foreach($colors as $key => $val) { $name = ereg_replace($key,"",$name); } return $name; } i don't really know the color codes so i only did the red one, but that should color names using: foreach($server['players'] as $temp) { echo substr(color($temp),1) . " "; } the substr() gets rid of the first character (those gay boxes) so i don't use another function for that.. unless they show up some place else? the final code was: <? function color($name) { $colors = array("ÿÿ"=>"#FF0000"); foreach($colors as $key => $val) { $name = ereg_replace($key,"",$name); } return $name; } $server['ip'] = $_GET['ip']; $server['port'] = $_GET['port']; $fp = @fsockopen("udp://" . $server['ip'], $server['port'] + 123); if(!$fp) { die("No Response"); } else { fwrite($fp,"s"); $data = fread($fp,4096); $data = preg_replace("/{5}\??|\?/","/////",$data); $data = explode("/////",$data); $raw = preg_replace("/^EYE1??(gta3)?mta\[0-9]{4}||||/","/////",$data[0]); list($null,$server['name'],$server['version'],$null,$server['current'],$server['max']) = explode("/////",$raw); $server['players'] = array_slice($data,1,-1); } print_r($server); foreach($server['players'] as $temp) { echo substr(color($temp),1) . " "; } ?> the output would be something like: Array ( [ip] => tyyy.org [port] => 2003 [max] => 14 [current] => 1 [version] => MTA Vice City0.2.0 [name] => dusty's mta:vc 0.2 ded server [players] => Array ( [0] => ÿÿtest ) ) test and can be called through filename.php?ip=0.0.0.0&port=0000 and the /////'s just replace some of the separators in the raw data so i can explode by 1 delimiter
×
×
  • Create New...