GaspArt Posted November 10, 2014 Report Share Posted November 10, 2014 (edited) Hello everybody :) Today I changed gui on my server, disabled infistar debug monitor, then understood, that need to make something nice for Coin System So i decided to make a script, that allow check bank accout by radio. Lets start install it! 1. You need maca134's script for Add Right Click Options to the Items 3 variants of script: 1. Check only bank cash by radio: 1.Create sqf file called bankcall and put this code in: private ["_bankMoney"]; if (dayz_combat == 1) then { cutText [format["You are in Combat and Can't check your bank account."], "PLAIN DOWN"]; } else { _bankMoney = player getVariable["bankMoney",0]; player playActionNow "Medic"; sleep 2; cutText [format["Dear %1, you have: %2 coins on your bank account. Thank you for using our bank!",name player,_bankMoney], "PLAIN DOWN"]; }; Save it in mission folder. 2. Then add this code in extra_rc.hpp class ItemRadio { class bankcall { text = "Check bank account"; script = "execVM 'PATH FOR SQF\bankcall.sqf'"; }; }; DONT FORGET TO CHANGE PATH FOR SQF!! 2. Check cash from your "card" and bank cash by radio in ONE key: 1.Create sqf file called bankcall and put this code in: private ["_bankMoney","_cashMoney"]; if (dayz_combat == 1) then { cutText [format["You are in Combat and Can't check your bank account."], "PLAIN DOWN"]; } else { _cashMoney = player getVariable["cashMoney",0]; _bankMoney = player getVariable["bankMoney",0]; player playActionNow "Medic"; sleep 2; cutText [format["Dear %1, you have %2 coins on your card and have %3 coins on your bank account. Thank you for using our bank!",name player,_cashMoney,_bankMoney], "PLAIN DOWN"]; }; Save it in mission folder. 2. Then add this code in extra_rc.hpp class ItemRadio { class bankcall { text = "Check bank account"; script = "execVM 'PATH FOR SQF\bankcall.sqf'"; }; }; DONT FORGET TO CHANGE PATH FOR SQF!! 3. Check cash from your "card" and bank cash by radio in TWO keys: 1.Create sqf file called cashcall and put this code in: private ["_cashMoney"]; if (dayz_combat == 1) then { cutText [format["You are in Combat and Can't check your cash."], "PLAIN DOWN"]; } else { _bankMoney = player getVariable["cashMoney",0]; player playActionNow "Medic"; sleep 2; cutText [format["Dear %1, you have: %2 coins on your card!Thank you for using our bank!Thank you for using our bank!",name player,_cashMoney], "PLAIN DOWN"]; }; Save it in mission folder. 2. Create sql file called bankcall and put this code in: private ["_bankMoney"]; if (dayz_combat == 1) then { cutText [format["You are in Combat and Can't check your bank account."], "PLAIN DOWN"]; } else { _bankMoney = player getVariable["bankMoney",0]; player playActionNow "Medic"; sleep 2; cutText [format["Dear %1, you have: %2 coins on your bank account. Thank you for using our bank!",name player,_bankMoney], "PLAIN DOWN"]; }; 3. Then add this code in extra_rc.hpp class ItemRadio { class cashcall { text = "Check cash on your card"; script = "execVM 'PATH FOR SQF\cashcall.sqf'"; }; class bankcall { text = "Check bank account"; script = "execVM 'PATH FOR SQF\bankcall.sqf'"; }; }; DONT FORGET TO CHANGE PATH FOR SQF!! Done :3 Special thx:Peterbeer and Mikeeeyy for fix :33 Zupa for the best script ever (coins) :3Maca134 for Right click options script :)Fixes: 10.11.14 - Added 3 variants of scripts using Edited November 10, 2014 by GaspArt Link to comment Share on other sites More sharing options...
Proximus Posted November 10, 2014 Report Share Posted November 10, 2014 Nice little addit, may save some people allot of time to drive/walk/cycle to a bank. Doesn't this need to be cashMoney? _bankMoney = player getVariable["bankMoney",0]; Thanks for this! Link to comment Share on other sites More sharing options...
PeterBeer Posted November 10, 2014 Report Share Posted November 10, 2014 Nice little addit, may save some people allot of time to drive/walk/cycle to a bank. Doesn't this need to be cashMoney?_bankMoney = player getVariable["bankMoney",0]; Thanks for this! Cashmoney is what you have one you and bankmoney is bank balance Link to comment Share on other sites More sharing options...
Proximus Posted November 10, 2014 Report Share Posted November 10, 2014 Doh! Ofcourse haha. Thanks PeterBeer Link to comment Share on other sites More sharing options...
PeterBeer Posted November 10, 2014 Report Share Posted November 10, 2014 Doh! Ofcourse haha. Thanks PeterBeer No worries, You catched me on a good morning Proximus 1 Link to comment Share on other sites More sharing options...
GaspArt Posted November 10, 2014 Author Report Share Posted November 10, 2014 Nice little addit, may save some people allot of time to drive/walk/cycle to a bank. Doesn't this need to be cashMoney? _bankMoney = player getVariable["bankMoney",0]; Thanks for this! Oooh, I'm so glad you liked it :3 thank you very much) Proximus 1 Link to comment Share on other sites More sharing options...
Proximus Posted November 10, 2014 Report Share Posted November 10, 2014 I actually got it working with Again, thanks for this! Link to comment Share on other sites More sharing options...
GaspArt Posted November 10, 2014 Author Report Share Posted November 10, 2014 I actually got it working with Again, thanks for this! No problems :) Made some additions) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now