Vice City Multiplayer

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

Title: Ratio!-.-
Post by: BoySticK on December 22, 2008, 05: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, 06:06:03 pm
Here you go....

Code: [Select]
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, 06:10:02 pm
I have modified it... ;) ;)
Title: Re: Ratio!-.-
Post by: BoySticK on December 22, 2008, 06:26:04 pm
thnx men! ;D
Title: Re: Ratio!-.-
Post by: [NoN]Toiletduck on December 30, 2008, 12:48:53 am
WOW! It works!