Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adminadd = adminadd + [" Give 1,000 Coins",admingive000coins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Take 1,000 Coins",admintake000coins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give 10,000 Coins",admingive0000coins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Take 10,000 Coins",admintake0000coins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give 100,000 Coins",admingive00000coins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Take 100,000 Coins",admintake00000coins,"0","0","0","1",[0,0.8,1,1]];
- Above
- `admingod =` :
- admingive000coins =
- {
- private ["_wealth","_removecoins"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _x setVariable["cashmoney",_wealth + 1000, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Gave %1 1000 Coins!",_this select 0];
- _sl = format["%1 gave 1000 coins to %2",name player,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
- admintake000coins =
- {
- private ["_wealth","_removecoins","_newwealth"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _removecoins = 1000;
- if (_wealth <= 1000) then {
- _removecoins = _wealth;
- } else {
- _removecoins = 1000;
- };
- _newwealth = _wealth-_removecoins;
- if (_newwealth <= 0) then { _newwealth = 0; };
- _x setVariable["cashmoney",_newwealth, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
- _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
- admingive0000coins =
- {
- private ["_wealth","_removecoins"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _x setVariable["cashmoney",_wealth + 10000, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Gave %1 10000 Coins!",_this select 0];
- _sl = format["%1 gave 10000 coins to %2",name player,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
- admintake0000coins =
- {
- private ["_wealth","_removecoins","_newwealth"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _removecoins = 10000;
- if (_wealth <= 10000) then {
- _removecoins = _wealth;
- } else {
- _removecoins = 10000;
- };
- _newwealth = _wealth-_removecoins;
- if (_newwealth <= 0) then { _newwealth = 0; };
- _x setVariable["cashmoney",_newwealth, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
- _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
- admingive00000coins =
- {
- private ["_wealth","_removecoins"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _x setVariable["cashmoney",_wealth + 100000, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Gave %1 100000 Coins!",_this select 0];
- _sl = format["%1 gave 100000 coins to %2",name player,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
- admintake00000coins =
- {
- private ["_wealth","_removecoins","_newwealth"];
- {
- if (name _x == _this select 0) then
- {
- _wealth = _x getVariable["cashmoney",0];
- _removecoins = 100000;
- if (_wealth <= 100000) then {
- _removecoins = _wealth;
- } else {
- _removecoins = 100000;
- };
- _newwealth = _wealth-_removecoins;
- if (_newwealth <= 0) then { _newwealth = 0; };
- _x setVariable["cashmoney",_newwealth, true];
- PVDZE_plr_Save = [_x,(magazines _x),true,true] ;
- publicVariableServer "PVDZE_plr_Save";
- _x setVariable ["moneychanged",1,true];
- hint format ["Take %1 coins from %2!",_removecoins, _this select 0];
- _sl = format["%1 took %2 coins from %3",name player,_removecoins,_this select 0];
- PVAH_WriteLogReq = [player,_sl];
- publicVariableServer "PVAH_WriteLogReq";
- };
- } forEach playableUnits;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement