ImJohnMclane Posted October 8, 2006 Share Posted October 8, 2006 Dudes, i was searched but i wasn't founded, can someone make that for me? Thanks, Link to comment
BetaDevil Posted October 8, 2006 Share Posted October 8, 2006 Next time, search harder http://forum.mtavc.com/viewtopic.php?t=17776 Link to comment
lil Toady Posted October 8, 2006 Share Posted October 8, 2006 Next time, search harder http://forum.mtavc.com/viewtopic.php?t=17776 That's not the ingame stats script.. thats a PHP script for a site... here's a stats script alias mta.spree !return $iif($hget(mta.spree,$mta.name($1,$2)),$v1,0) alias my.kills !return $iif($readini($scriptdir $+ mta.stats.ini,KILLS,$mta.name($1,$2)),$v1,0) alias my.deaths !return $iif($readini($scriptdir $+ mta.stats.ini,DEATHS,$mta.name($1,$2)),$v1,0) alias my.spree !return $iif($readini($scriptdir $+ mta.stats.ini,SPREE,$mta.name($1,$2)),$v1,0) on *:SIGNAL:mta.kill:{ if (!$hget(mta.spree)) !hmake mta.spree 100 if ($3 != $2) { !writeini " $+ $scriptdir $+ mta.stats.ini" KILLS $mta.name($1,$3) $calc($my.kills($1,$3) + 1) !hadd mta.spree $mta.name($1,$3) $calc($mta.spree($1,$3) + 1) if ($mta.spree($1,$3) > $my.spree($1,$3)) !writeini " $+ $scriptdir $+ mta.stats.ini" SPREE $mta.name($1,$3) $calc($my.spree($1,$3) + 1) } !writeini " $+ $scriptdir $+ mta.stats.ini" DEATHS $mta.name($1,$2) $calc($mta.deaths($1,$2) + 1) !hdel mta.spree $mta.name($1,$2) } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if (!stat* iswm $3) { if (%a == -1) mta.msg $1 $2 Error - Absent ID. else { mta.say $1 Stats for $mta.name($1,%a) - Kills: $mta.kills($1,%a) $+ , Deaths: $mta.deaths($1,%a) $+ , Spree: $mta.spree($1,%a) mta.say $1 Overall - Kills: $my.kills($1,%a) $+ , Deaths: $my.deaths($1,%a) $+ , Ratio: $round($calc($my.kills($1,%a) / $my.deaths($1,%a)),4) $+ , Score: $calc($my.kills($1,%a) - $my.deaths($1,%a)) $+ , Best Spree: $my.spree($1,%a) } } } Link to comment
Recommended Posts