Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: BoySticK on December 22, 2008, 03:14:39 PM

Title: Ratio!-.-
Post by: BoySticK on December 22, 2008, 03:14:39 PM
uhmm In GUS doesnt show the ratio.................................................xD ;D
when u type !stats....................................xD

so......HELP...........................................xD

Note:GUS ._-
Title: Re: Ratio!-.-
Post by: Amenine on December 22, 2008, 04:06:03 PM
Here you go....

elseif (!stat* iswm $2) || (!pmstat* iswm $2) {
    var %ratio = $round($calc($vcmp.kills(%a) / $vcmp.deaths(%a)),2)
    if ($vcmp.cmdcheck(!stats,%id) == fail) !halt
    elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
    else vcmp.say $vcmp.name(%a) $+ 's Stats - Kills: $vcmp.kills(%a) $+ , Deaths: $vcmp.deaths(%a) $+ , Ratio: %ratio
  }


Regards
Amenine
Title: Re: Ratio!-.-
Post by: Amenine on December 22, 2008, 04:10:02 PM
I have modified it... ;) ;)
Title: Re: Ratio!-.-
Post by: BoySticK on December 22, 2008, 04:26:04 PM
thnx men! ;D
Title: Re: Ratio!-.-
Post by: [NoN]Toiletduck on December 29, 2008, 10:48:53 PM
WOW! It works!