Advertisement
corbuhh

Untitled

Aug 11th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. adminadd = adminadd + [" Give 1,000 Coins",admingive000coins,"0","0","0","1",[0,0.8,1,1]];
  2. adminadd = adminadd + [" Take 1,000 Coins",admintake000coins,"0","0","0","1",[0,0.8,1,1]];
  3. adminadd = adminadd + [" Give 10,000 Coins",admingive0000coins,"0","0","0","1",[0,0.8,1,1]];
  4. adminadd = adminadd + [" Take 10,000 Coins",admintake0000coins,"0","0","0","1",[0,0.8,1,1]];
  5. adminadd = adminadd + [" Give 100,000 Coins",admingive00000coins,"0","0","0","1",[0,0.8,1,1]];
  6. adminadd = adminadd + [" Take 100,000 Coins",admintake00000coins,"0","0","0","1",[0,0.8,1,1]];
  7.  
  8. Above
  9. `admingod =` :
  10.  
  11. admingive000coins =
  12. {
  13. private ["_wealth","_removecoins"];
  14. {
  15. if (name _x == _this select 0) then
  16. {
  17. _wealth = _x getVariable["cashmoney",0];
  18. _x setVariable["cashmoney",_wealth + 1000, true];
  19. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  20. publicVariableServer "PVDZE_plr_Save";
  21. _x setVariable ["moneychanged",1,true];
  22. hint format ["Gave %1 1000 Coins!",_this select 0];
  23.  
  24. _sl = format["%1 gave 1000 coins to %2",name player,_this select 0];
  25. PVAH_WriteLogReq = [player,_sl];
  26. publicVariableServer "PVAH_WriteLogReq";
  27. };
  28. } forEach playableUnits;
  29. };
  30. admintake000coins =
  31. {
  32. private ["_wealth","_removecoins","_newwealth"];
  33. {
  34. if (name _x == _this select 0) then
  35. {
  36. _wealth = _x getVariable["cashmoney",0];
  37. _removecoins = 1000;
  38. if (_wealth <= 1000) then {
  39. _removecoins = _wealth;
  40. } else {
  41. _removecoins = 1000;
  42. };
  43. _newwealth = _wealth-_removecoins;
  44. if (_newwealth <= 0) then { _newwealth = 0; };
  45. _x setVariable["cashmoney",_newwealth, true];
  46. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  47. publicVariableServer "PVDZE_plr_Save";
  48. _x setVariable ["moneychanged",1,true];
  49. hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
  50.  
  51. _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
  52. PVAH_WriteLogReq = [player,_sl];
  53. publicVariableServer "PVAH_WriteLogReq";
  54. };
  55. } forEach playableUnits;
  56. };
  57. admingive0000coins =
  58. {
  59. private ["_wealth","_removecoins"];
  60. {
  61. if (name _x == _this select 0) then
  62. {
  63. _wealth = _x getVariable["cashmoney",0];
  64. _x setVariable["cashmoney",_wealth + 10000, true];
  65. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  66. publicVariableServer "PVDZE_plr_Save";
  67. _x setVariable ["moneychanged",1,true];
  68. hint format ["Gave %1 10000 Coins!",_this select 0];
  69.  
  70. _sl = format["%1 gave 10000 coins to %2",name player,_this select 0];
  71. PVAH_WriteLogReq = [player,_sl];
  72. publicVariableServer "PVAH_WriteLogReq";
  73. };
  74. } forEach playableUnits;
  75. };
  76. admintake0000coins =
  77. {
  78. private ["_wealth","_removecoins","_newwealth"];
  79. {
  80. if (name _x == _this select 0) then
  81. {
  82. _wealth = _x getVariable["cashmoney",0];
  83. _removecoins = 10000;
  84. if (_wealth <= 10000) then {
  85. _removecoins = _wealth;
  86. } else {
  87. _removecoins = 10000;
  88. };
  89. _newwealth = _wealth-_removecoins;
  90. if (_newwealth <= 0) then { _newwealth = 0; };
  91. _x setVariable["cashmoney",_newwealth, true];
  92. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  93. publicVariableServer "PVDZE_plr_Save";
  94. _x setVariable ["moneychanged",1,true];
  95. hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
  96.  
  97. _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
  98. PVAH_WriteLogReq = [player,_sl];
  99. publicVariableServer "PVAH_WriteLogReq";
  100. };
  101. } forEach playableUnits;
  102. };
  103. admingive00000coins =
  104. {
  105. private ["_wealth","_removecoins"];
  106. {
  107. if (name _x == _this select 0) then
  108. {
  109. _wealth = _x getVariable["cashmoney",0];
  110. _x setVariable["cashmoney",_wealth + 100000, true];
  111. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  112. publicVariableServer "PVDZE_plr_Save";
  113. _x setVariable ["moneychanged",1,true];
  114. hint format ["Gave %1 100000 Coins!",_this select 0];
  115.  
  116. _sl = format["%1 gave 100000 coins to %2",name player,_this select 0];
  117. PVAH_WriteLogReq = [player,_sl];
  118. publicVariableServer "PVAH_WriteLogReq";
  119. };
  120. } forEach playableUnits;
  121. };
  122. admintake00000coins =
  123. {
  124. private ["_wealth","_removecoins","_newwealth"];
  125. {
  126. if (name _x == _this select 0) then
  127. {
  128. _wealth = _x getVariable["cashmoney",0];
  129. _removecoins = 100000;
  130. if (_wealth <= 100000) then {
  131. _removecoins = _wealth;
  132. } else {
  133. _removecoins = 100000;
  134. };
  135. _newwealth = _wealth-_removecoins;
  136. if (_newwealth <= 0) then { _newwealth = 0; };
  137. _x setVariable["cashmoney",_newwealth, true];
  138. PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
  139. publicVariableServer "PVDZE_plr_Save";
  140. _x setVariable ["moneychanged",1,true];
  141. hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
  142.  
  143. _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
  144. PVAH_WriteLogReq = [player,_sl];
  145. publicVariableServer "PVAH_WriteLogReq";
  146. };
  147. } forEach playableUnits;
  148. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement