Advertisement
J3r3my133

Untitled

Feb 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.63 KB | None | 0 0
  1. /*
  2. *AUTHOR: J3R3MY BY ZOCKERBUDEN COMMUNITY
  3. *DESCRIPTION: TRANSFER THE MONEY OVER THIS FUNCTION
  4. */
  5. private["_amount","_isBank","_AddorSUB"];
  6. _amount _this select 0;
  7. _isBank _this select 1;
  8. _AddorSUB _this select 2;
  9.  
  10. if(isNil "_amount")exitWith{};
  11. if(isNil "_isBank")exitWith{};
  12. if(isNil "_AddorSUB")exitWith{};
  13. if(_amount <= 0)exitWith{};
  14.  
  15. READYTOTRANSFER = true;
  16.  
  17. if(_isBank)then{
  18. if(_AddorSUB)then{
  19. life_atmbank = life_atmbank + _amount;
  20. }else{
  21. life_atmbank = life_atmbank - _amount;
  22. };
  23. }else{
  24. if(_AddorSUB)then{
  25. life_cash = life_cash + _amount;
  26. }else{
  27. life_cash = life_cash - _amount;
  28. };
  29. };
  30. READYTOTRANSFER = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement