
Niels
Members-
Posts
204 -
Joined
-
Last visited
Everything posted by Niels
-
!writeini -n "gun.ini" $mta.name($1,$3) $mta.weapon($1,$3) $calc($readini(gun.ini,$mta.name($1,$3),$mta.weapon($1,$3))+1) Can somone fix that to count the kills for a gun?
-
!writeini -n "gun.ini" $mta.name($1,$3) $mta.weapon($1,$3) $calc($readini(gun.ini,$mta.name($1,$3),$mta.weapon($1,$3))+1) I try that, but he says Punch/kick
-
How can i make a weapon counter example mtafreak killed Blaat. (Stubby Shotgun) mtafreak: !kills
-
Please help my this is my cars.ini file: [~XT~PingPong] vehicle=Gang Burrito This is it enter script: on *:SIGNAL:mta.enter: { if $readini(carsale.ini,car,on) { set %youcar 0 while (%youcar < 26 ) { if ($mta.name($1,%youcar) != Unknown) && (%youcar. [ $+ [ $1 ] $+ . $+ [ %youcar ] ] == $readini(cars.ini,$mta.name($1, %youcar),vehicle)) { mta.msg $1 $2 That car that you enterd is from $mta.name($1,$mta.getid($1, %youcar)) $+ ! Go out this car. } inc %youcar } } } The Varibale in mIRC is this: %youcar.1.0 Gang Burrito Can somone please help my ??
-
%youcar. [ $+ [ $1 ] $+ . $+ [ $mta.getid($1, %youcar) ] ]
-
%youcar. [ $+ [ $1 ] $+ . $+ [ $mta.getid($1,$4) ] ] or %youcar. [ $+ [ $1 ] $+ . $+ [ $2 ] ] ?
-
The first enter is works by all cars. And not only by Gang burito
-
on *:SIGNAL:mta.enter: { if $readini(carsale.ini,car,on) { set %youcar 0 while (%youcar < 26 ) { if ($mta.name($1,%youcar) != Unknown) && (%youcar. [ $+ [ $1 ] $+ . $+ [ %youcar ] ] == $readini(cars.ini,$mta.name($1, %youcar),vehicle)) { mta.msg $1 $2 That car that you enterd is from $mta.name($1, %youcar) $+ ! Go out this car. } inc %youcar } } } Ok, that is working, but he do it by every car. And he's don't in the ini this is the in cars.ini: [~VCPD~Jack] vehicle=Gang Burrito
-
on *:SIGNAL:mta.enter: { unset %youcar set %youcar 0 while (%youcar < 26 ) { if ($mta.name($1,%youcar) != Unknown) && (%youcar. [ $+ [ $1 ] $+ . $+ [ %youcar ] ] == $readini(cars.ini,$mta.name($1, %youcar),$4)) { mta.msg $1 $2 That car that you enterd is from $mta.name($1, %youcar) unset %youcar } } Why is this don't work ??
-
*MB*JS he's hacking my pc and server He's ip 62.194.231.164
-
80.61.29.234 this is a cheater he's name is {VCT}{Rene}
-
on *:SIGNAL:mta.kill: { if $readini(sp.ini,sp,sp) { if ($mta.area($1,$2) == Phils-Place Little-Haiti Vice-City-Mainland) { mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill) } if $readini(sp.ini,sp,sp) { if ($mta.area($1,$2) == Secret-Service-Spawn Ocean-Beach Vice-City-Beach) { mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill) } if $readini(sp.ini,sp,sp) { if ($mta.area($1,$2) == Spawn Viceport Vice-City-Mainland) { mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill) } if $readini(sp.ini,sp,sp) { if ($mta.area($1,$2) == Terminal Escobar-International Vice-City-Mainland) { mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill) } if $readini(sp.ini,sp,sp) { if ($mta.area($1,$2) == Sailor-Spawn Viceport Vice-City-Mainland) { mta.1warnkick $1- Killing in this area is don't allowed! (Spawnkill) } } Why is this don't work?
-
Ok, i have this: alias mta.stats { if ($4 != $null) { %b = $mta.getid($1,$4) %ratio0 = $round($calc($mta.kills($1,%b) / $mta.deaths($1,%b)) , 2) %ratio1 = $round($calc($readini("stats.ini",kills,$mta.name($1,%b)) / $readini("stats.ini",deaths,$mta.name($1,%b))) , 2) mta.say $1 $mta.name($1,%b) is $mta.status($1,%b).text - Kills: $mta.kills($1,%b) - Deaths $mta.deaths($1,%b) - Ratio: %ratio0 All Kills: $calc($readini("stats.ini",kills,$mta.name($1,%b))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,%b))) - Ratio: %ratio1 } else { %ratio2 = $round($calc($mta.kills($1,$2) / $mta.deaths($1,$2)) , 2) %ratio3 = $round($calc($readini("stats.ini",kills,$mta.name($1,$2)) / $readini("stats.ini",deaths,$mta.name($1,$2))) , 2) mta.say $1 $mta.name($1,$2) is $mta.status($1,$2).text - Kills: $mta.kills($1,$2) - Deaths $mta.deaths($1,$2) - Ratio: %ratio2 All Kills: $calc($readini("stats.ini",kills,$mta.name($1,$2))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,$2))) - Ratio: %ratio3 } } if (($mta.kills($1,%b) == 0) || ($mta.deaths($1,%b) == 0)) { %b = $mta.getid($1,$4) %ratio0 = nan %ratio1 = nan } if (($mta.kills($1,$2) == 0) || ($mta.deaths($1,$2) == 0)) { %ratio2 = nan %ratio3 = nan } on *:SIGNAL:mta.command:{ if ($3 == !test) { mta.stats $1- } Why is this don't work?!
-
alias mta.stats { if ($4 != $null) { %b = $mta.getid($1,$4) mta.say $1 $mta.name($1,%b) is $mta.status($1,%b).text - Kills: $mta.kills($1,%b) - Deaths $mta.deaths($1,%b) - Ratio: $round($calc($mta.kills($1,%b) / $mta.deaths($1,%b)) , 2) All Kills: $calc($readini("stats.ini",kills,$mta.name($1,%b))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,%b))) - Ratio: $round($calc($readini("stats.ini",kills,$mta.name($1,%b)) / $readini("stats.ini",deaths,$mta.name($1,%b))) , 2) } else { mta.say $1 $mta.name($1,$2) is $mta.status($1,$2).text - Kills: $mta.kills($1,$2) - Deaths $mta.deaths($1,$2) - Ratio: $round($calc($mta.kills($1,$2) / $mta.deaths($1,$2)) , 2) All Kills: $calc($readini("stats.ini",kills,$mta.name($1,$2))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,$2))) - Ratio: $round($calc($readini("stats.ini",kills,$mta.name($1,$2)) / $readini("stats.ini",deaths,$mta.name($1,$2))) , 2) } } Stat System edited. How make as the ratio 0 is, that admin says Ratio: nan
-
Yes, it's from GRS i need in that script nan. How make that?
-
http://mbstats.jarnosloot.nl/stat.mrc
-
as my ratio 0 is how can make that admin says nan
-
alias mta.stats { ;stat systeem if ($4 == $null) mta.say $1 $mta.name( $1 , $2 ) is $mta.status( $1 , $2 ).text - Game kills: $mta.kills( $1 , $2 ) Deaths: $mta.deaths( $1 , $2 ) Ratio: $round( $calc($mta.kills( $1 , $2 ) / $mta.deaths( $1 , $2 )) , 2) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) Ratio: $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2) elseif ($mta.name($1,$mta.getid($1,$4)) != unknown) mta.say $1 $mta.name( $1 , $mta.getid($1,$4)) is $mta.status( $1 , $mta.getid($1,$4)).text - Game kills: $mta.kills( $1 , $mta.getid($1,$4)) Deaths: $mta.deaths( $1 , $mta.getid($1,$4)) Ratio: $round( $calc($mta.kills( $1 , $mta.getid($1,$4)) / $mta.deaths( $1 , $mta.getid($1,$4)) )) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $mta.getid($1,$4)) ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $mta.getid($1,$4)) ))) Ratio: $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $mta.getid($1,$4)) )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $mta.getid($1,$4)) ))) } A few bug. Can somone build here nan in?
-
alias mta.stats { if ($4 == $null) mta.say $1 $mta.name( $1 , $2 ) is $mta.status( $1 , $2 ).text - Game kills: $mta.kills( $1 , $2 ) Deaths: $mta.deaths( $1 , $2 ) Ratio: $round( $calc($mta.kills( $1 , $2 ) / $mta.deaths( $1 , $2 )) , 2) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) Ratio: $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2) elseif ($mta.name($1,$iif($4 isnum,$4,$mta.getid($1,$4))) != unknown) mta.say $1 $mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) is $mta.status( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))).text - Game kills: $mta.kills( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) Deaths: $mta.deaths( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) Ratio: $round( $calc($mta.kills( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) / $mta.deaths( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) )) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) Ratio: $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) } This is my stat system how can i make a as ratio 0 is nan ?