Jump to content

Infistar ask


khalcifer

Recommended Posts

Hello how can i change display Money and bank balance spectating player.

Now have Money 90000 and Bamk 1.545e+006, i want Money 90,000 and Bank 1,545,000

_log2 = format['Blood: %1  Humanity: %2 | Money: %3 | Bank: %4',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['cashMoney',0]),(_unit getVariable['MoneySpecial',0])];

Link to comment
Share on other sites

57 minutes ago, samnotts said:

how do i get to see my players money and bank money when i am spectating them 

AT.sqf

_log2 = format['Blood: %1  Humanity: %2',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0])];

and replace

_log2 = format['Blood: %1  Humanity: %2 | Money: %3 | Bank: %4',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),[ (_unit getVariable['cashMoney',0]) ] call BIS_fnc_numberText,[ (_unit getVariable['MoneySpecial',0]) ] call BIS_fnc_numberText];

Link to comment
Share on other sites

36 minutes ago, totis said:

Any code to see also players bandit/hero kill count when you spectate them?

try it

_log2 = format['Blood: %1  Humanity: %2 | Money: %3 | Bank: %4 | Bandit: %5 | Murders: %6',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),[ (_unit getVariable['cashMoney',0]) ] call BIS_fnc_numberText,[ (_unit getVariable['MoneySpecial',0]) ] call BIS_fnc_numberText, (_unit player getVariable['banditKills', 0]), (_unit player getVariable['humanKills', 0])];

Link to comment
Share on other sites

no it doesnt work. infi stops working and lock/unlock msg pops up. I know its the correct way but prob there is a typo there.

Doesnt need the ' call BIS_fnc_numberText ' at the end or is that only for showing numbers in thousands correct?

Link to comment
Share on other sites

20 minutes ago, totis said:

no it doesnt work. infi stops working and lock/unlock msg pops up. I know its the correct way but prob there is a typo there.

Doesnt need the ' call BIS_fnc_numberText ' at the end or is that only for showing numbers in thousands correct?

_log2 = format['Blood: %1  Humanity: %2 | Money: %3 | Bank: %4 | Bandit: %5 | Murders: %6',_unit getVariable['USEC_BloodQty',12000],_unit getVariable['humanity',0],[ (_unit getVariable[Z_moneyVariable,0])] call BIS_fnc_numberText,[(_unit getVariable[Z_bankVariable,0])] call BIS_fnc_numberText,_unit getVariable['banditKills',0],_unit getVariable['humanKills',0]];

Try this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...