The_Stig Posted December 19, 2006 Posted December 19, 2006 Hey all. I'm on the look out for a points scripts which will show the players postition and stuff like that for our server. Seen one before on another server and was wondering if it was availible at all. Thanks in advance, John.
kevuwk Posted December 19, 2006 Posted December 19, 2006 moved to the appropriate area Kevuwk Any comments made are purely my own and do not represent the interests of the MTA Team
The_Stig Posted December 20, 2006 Author Posted December 20, 2006 ok i found this script earlier doing a search:- on *:SIGNAL:mta.finish: { if (($mta.rank($1,$2) <= 5) && ($mta.server($1).players >= 2)) { var %score = $replacex($mta.rank($1,$2),1,5,2,4,3,3,4,2,5,1) var %position = $replace($mta.rank($1,$2),1,first,2,second,3,third,4,fourth,5,fifth) mta.text $1 $mta.nick($1,$2) came %position $+ and earned %score points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + %score),%score) } elseif ($mta.server($1).players == 1) { mta.text $1 Playing alone earned you 2 points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + 2),2) } } But everytime someone places i get this:- [01:15] notice the missing space inbetween 'firstand'. i have tried manually adding in a space but it doesnt seem to take it. Any ideas folks?? Regards, John.
lil Toady Posted December 20, 2006 Posted December 20, 2006 on *:SIGNAL:mta.finish: { if (($mta.rank($1,$2) <= 5) && ($mta.server($1).players >= 2)) { var %score = $replacex($mta.rank($1,$2),1,5,2,4,3,3,4,2,5,1) var %position = $replace($mta.rank($1,$2),1,first,2,second,3,third,4,fourth,5,fifth) mta.text $1 $mta.nick($1,$2) came %position and earned %score points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + %score),%score) } elseif ($mta.server($1).players == 1) { mta.text $1 Playing alone earned you 2 points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + 2),2) } } that one is with space there Do not PM me, im not going to read it anyway.
DazzaJay Posted February 16, 2007 Posted February 16, 2007 on *:SIGNAL:mta.finish: { if (($mta.rank($1,$2) <5>= 2)) { var %score = $replacex($mta.rank($1,$2),1,5,2,4,3,3,4,2,5,1) var %position = $replace($mta.rank($1,$2),1,first,2,second,3,third,4,fourth,5,fifth) mta.text $1 $mta.nick($1,$2) came %position and earned %score points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + %score),%score) } elseif ($mta.server($1).players == 1) { mta.text $1 Playing alone earned you 2 points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.ip($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.ip($1,$2)),$calc($v1 + 2),2) } } that one is with space there is the a command for checking said players score? and/or is there a way to incorperate the score into !stats along side wind/deaths/spawns and so on? :::EDIT::: Auctually, i have just found this script to be useless with a dynamic IP. The Most Accurate Real Car Names List & Mod Ever. No Bullcrap. <-- Updated 20-January-2008! The Most Awesome MTA Clan and Servers Ever! No Bullcrap! <-- We Are Recruting New Members! [PS] Clan signups are open to the public! (Currently we are looking for Scripters) Click Here to join!
Recommended Posts