Jump to content
PeterBeer

[Tutorial] See Players Money & Bank Balance - Using Infistar

Recommended Posts

Simple Peace Of Code But Alot Of Help 
 
Reason For :
Catch People Who Duplicate
 
Install :

Open AH.sqf
 
Find :

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

Replace With :

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

Replace With This If You Have Soul's Edits :

_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['bankMoney',0])];

Image :

B2JGnO4.jpg

Share this post


Link to post
Share on other sites

Simple Peace Of Code But Alot Of Help 

 

Reason For :

Catch People Who Duplicate

 

Install :

Open AH.sqf

 

Find :

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

Replace With :

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

Image :

B2JGnO4.jpg

 

If you are using Soul's hive version, should it not be like this: 

_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["bank",0])];

Your example would be if you are still using Zupa's 1.1 version... yes? 

 

Share this post


Link to post
Share on other sites

If you are using Soul's hive version, should it not be like this: 

_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["bank",0])];

Your example would be if you are still using Zupa's 1.1 version... yes? 

 

 

 

Yes this is for zupa 1.1

Share this post


Link to post
Share on other sites

Figured out the Variable has to be "bank" instead of "bankMoney" if using Zupa´s version,

 

Ah i feel like a idiot now thanks for spotting that out i have update the post 

 

Got mixed up with souls "bankmoney" and Zupa 1.1 "bank"

Share this post


Link to post
Share on other sites

anyway to get it to display numbers correctly as a lot of my players have over a million and it displays incoorectly?

 

Thanks

 

Old post, but maybe this will help someone:

 

Soul Version:

_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['bankMoney',0] call BIS_fnc_numberText)];
				

Zupa 1.1 Version:

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

Share this post


Link to post
Share on other sites

Simple Peace Of Code But Alot Of Help 

 

Reason For :

Catch People Who Duplicate

 

Install :

Open AH.sqf

 

Find :

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

Replace With :

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

 

I am using Zupa's SC 3.0 storage on my server with infistar. I'm pretty sure I won't be able to see the amount in a persons shed, so can I just use this code to see how many coins a player has on them?

 

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

Share this post


Link to post
Share on other sites

Btw the line you need to find has been moved.

Its now inside AT.sqf

Find:

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

I used the soul edits replace.

Share this post


Link to post
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

  • Similar Content

    • By JakeQue
      Is there anyway to add a disable footsteps for admins?
       
      Also I would love to be able to spawn a mission in from the admin menu, I tried some code but it just breaks Infistar, it would seem it is executing it automatically.
       
       
      Thank you!
    • By Kushti
      ***NEW King Kong Overpoch NEVER WIPE|PVP|500K Start|Dedi|SSD|Semi-Mili|VG|Custom Areas/Spawn/Missions|FPS++
      BRAND NEW DATABASE + SERVER 3rd May 2018. Will not wipe!
      Admins are active. We help everyone from getting started to players with 5000 hours experience. 

      We have tonnes of mods including: 
      Auction House

      Custom HUD

      Custom In-game Menu (With Deployable's)

      View Server Rules & Tips, Deploy Vehicles, Virtual Garages, Scan For Nearby Players & AI (1000m) Set View Distance, Toggle Grass & Check Building Location For Plot.
      Parajump Off Buildings.

      Our Map & Events

      Custom Trader Style

      Custom GPS 

      Fake Death


      Plot For Life (Maintain Every 7 Days)

      Base raiding (Blow the door to someone else's base and have some fun)


      Hotwire vehicle

      Global banking
      Tow & Lift

      Campfire dance

       
      Deploy Blast Proof Bunker (Deployables In the In-Game Menu) (Auto Deployable Vehicles + Auto Force Into Vehicles + Turn Engines On Automatically)

      View distance with binoculars/rangefinders

      Suicide bomber
      Virtual Garage

      Custom Spawns/Loadouts




      Custom areas (Castles, Military areas, NEAF)

       

      Custom Traders
      Kozlovka Trader

      Bandit Trader

      Stary Trader

      Klen Trader

      Meat Trader (Not a Safezone)

      Currently updating our very own Devils Castle AI mission.
      & much more!


      Custom mission including drugs bust, veins, gems & more.

      Job System

      New King Kong Custom Mission


      Weather is clear and daytime.
       
      We have Teamspeak: 94.175.108.172
      Discord: https://discordapp.com/invite/bKbQaRh
       
      and Forums:  http://kkoverpoch.co.uk/index.php
       
       
       
       
      Let's stop the talking and just play!
      Server IP: 94.175.108.172:2302
       
       
       
       
       

    • By Mattiman338
      Hi all, doing up a server for myself and a few friends but am having one issue which I am clueless as to why it is happening. It doesn't really affect game play but does make it difficult navigating through certain tasks.
      The issue arises with ZSC and Virtual Garage dialogs only as far as I have tested. Certain buttons within dialogs do not show, such as the deposit and withdraw buttons for the bankers and the store vehicle button in the Virtual Garage dialog.
      I am running InfiSTAR admin tools and antihack and as far as I know, that could be the culprit with these problems but I have checked the servers .RPT and checked for errors with ZSC and the Virtual Garage with nothing coming up.
      There are InfiSTAR logs showing though and one refers to a dialog. 
       
      In-game screens
      And my .RPT from the last restart to when I tested the dialogs to gather screenshots
       
       
      All help is appreciated as I can't find anything to do with infiSTAR in the script installs.
      Thanks all!
    • By BetaT
      hay guys, well i have been trying to put vkc on my server, but everytime i install it i loose my coin system and banking, no money, u can sell a gun and get nothing, i dont know how to add a coin system to the script, if there is anyone willing to help someone like me that wants to learn how to do this and actually get it working, i would really appreciate it
    • By [email protected]
      has anyone had issues with installing infistar on 1.0.... for some reason the dll's are freezing my server
  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×