Advertisement
Guest User

Untitled

a guest
May 24th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. private _addmoney = 400000;
  2. private _previousmoney = XY_CC + XY_CA;
  3.  
  4. private _nowmoney = XY_CC + XY_CA + _addmoney;
  5. if( (_nowmoney - _previousmoney) >= 500000 ) then {
  6. hint 'Spawne nicht mehr als 500k aufeinmal (Anti-Anti-Money Check)';
  7. } else {XY_CC = XY_CC + _addmoney};
  8.  
  9. or use
  10.  
  11. []spawn {
  12. private _moneytospawn = 5000000;
  13. private _moneyaddeachtime = 10000;
  14.  
  15.  
  16. private _expectedmoney = XY_CC + XY_CA + _moneytospawn;
  17. while {true} do
  18. {
  19.  
  20. private _previousmoney = XY_CC + XY_CA;
  21. private _nextmoney = XY_CC + XY_CA + _moneyaddeachtime;
  22.  
  23. if( (_nextmoney - _previousmoney) >= 500000 ) exitWith
  24. {
  25. hint 'Anti-Money Check';
  26. };
  27.  
  28. if(_previousmoney == _expectedmoney) exitWith{hint format["You have %1 $",XY_CA];};
  29.  
  30. if((_nextmoney) >= _expectedmoney) then
  31. {
  32. XY_CA = XY_CA + 1;
  33. uiSleep 0.2;
  34. hint format["You have %1 $",XY_CA];
  35.  
  36. } else {
  37.  
  38. XY_CA = XY_CA + _moneyaddeachtime;
  39. uiSleep 0.4;
  40. hint format["You have %1 $",XY_CA];
  41.  
  42. };
  43.  
  44.  
  45. };
  46. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement