Page 1 of 1

how do i get "hands" stat to show up as "x.x k" in the hud?

PostPosted: Wed Aug 27, 2008 4:15 am
by SaiYeN
I want the HANDS stat to show up in the hud as "12.5k" instead of like "12535" for large numbers and if the number is less than 1000 just have it show up normally. Anyone know how to do that?

Thanks

Re: how do i get "hands" stat to show up as "x.x k" in the hud?

PostPosted: Wed Aug 27, 2008 7:46 am
by js2002
Hi,

u can make ur own hand Stat that checks if the hands ar more than 1000 and then divide it /1000 and put a "k" behind it.

Re: how do i get "hands" stat to show up as "x.x k" in the hud?

PostPosted: Wed Aug 27, 2008 8:26 am
by js2002
if(cnt_hands>1000,format(format_number((cnt_hands / 1000), 1,true , false),'k') ,cnt_hands)


dont forget to enter "1" into decimals where u add the stat to the HUD.

Damn, this version has a bug. If u hav 95 hands f.e. it shows 950.0 . Any ideas?

Re: how do i get "hands" stat to show up as "x.x k" in the hud?

PostPosted: Wed Aug 27, 2008 9:10 am
by js2002
I fixed it and will upload it into the repository.