Author Topic: Ratio!-.-  (Read 3558 times)

0 Members and 1 Guest are viewing this topic.

Offline BoySticK

  • Street Thug
  • *
  • Posts: 23
    • View Profile
Ratio!-.-
« 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 ._-

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: Ratio!-.-
« Reply #1 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
« Last Edit: December 22, 2008, 06:09:20 pm by Amenine »

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: Ratio!-.-
« Reply #2 on: December 22, 2008, 06:10:02 pm »
I have modified it... ;) ;)

Offline BoySticK

  • Street Thug
  • *
  • Posts: 23
    • View Profile
Re: Ratio!-.-
« Reply #3 on: December 22, 2008, 06:26:04 pm »
thnx men! ;D

Offline [NoN]Toiletduck

  • Wiseguy
  • **
  • Posts: 65
    • View Profile
Re: Ratio!-.-
« Reply #4 on: December 30, 2008, 12:48:53 am »
WOW! It works!