Jump to content

[Release] InfiStar Coin's Spawn Add-on for Zupa Coin's


Recommended Posts

Hello People's Of DayZ

 

Im Going to Show you How to install Coin's add on for infastar

==========================

You need to have the FULL version of infastar

===============================

Picture's

https://www.dropbox.com/sc/z8jkrtxuw3tu5at/AACyAMFpemEiAHUtD3fQewX1a

 

===============================

If You want me to make a tut on how to add the coin thing to infastar debug i well do so

===============================

Thank AlexLawson For call BIS_fnc_numberText

 

 

First Find AH.sqf in you're "init" Folder

 

Then Find the following in your "AH.sqf"

_log2 = format['Blood: %1  Humanity: %2

And replace that with (only if you have Zupa 3.0)

_log2 = format['Blood: %1  Humanity: %2  Coins: %3',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['cashMoney',0] call BIS_fnc_numberText)];

If You have Global Banking (E.X Zupa 1.1)

_log2 = format['Blood: %1  Humanity: %2  Coins: %3   Bank: 4%',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['headShots',0] call BIS_fnc_numberText),(_unit getVariable['bank',0])];

Then Find:

adminadd = adminadd + ["   +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
		};
		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
	};

And under that Put:

admin_fillCoinMenu =
	{
		inSub = false;
		_ctrl = 2 call getControl;
		lbclear _ctrl;
		_ctrl ctrlSetFont "TahomaB";
		adminadd = [];
		call admin_fillsubsss;
		adminadd = adminadd + ["  Give +1 Coin",admincoinPlusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -1 Coin",admincoinMinusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5 Coin",admincoinPlusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5 Coin",admincoinMinusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10 Coin",admincoinPlusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10 Coin",admincoinMinusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +50 Coin",admincoinPlusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50 Coin",admincoinMinusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100 Coin",admincoinPlus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100 Coin",admincoinMinus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500 Coin",admincoinPlus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500 Coin",admincoinMinus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +2500 Coin",admincoinPlus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -2500 Coin",admincoinMinus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5000 Coin",admincoinPlus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5000 Coin",admincoinMinus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10000 Coin",admincoinPlus4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10000 Coin",admincoinMinus4,"0","0","0","1",[0,0.8,1,1]];
	        adminadd = adminadd + ["  Give +50000 Coin",admincoinPlus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50000 Coin",admincoinMinus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100000 Coin",admincoinPlus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100000 Coin",admincoinMinus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500000 Coin",admincoinPlus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500000 Coin",admincoinMinus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +IM RICH BITCH",admincoinPlusRich,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -IM RICH BITCH",admincoinMinusRich,"0","0","0","1",[0,0.8,1,1]];
		call admin__FILL_MENUS;
	};	

So It Looks Like

			adminadd = adminadd + ["   +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
		};
		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
	};
	admin_fillCoinMenu =
	{
		inSub = false;
		_ctrl = 2 call getControl;
		lbclear _ctrl;
		_ctrl ctrlSetFont "TahomaB";
		adminadd = [];
		call admin_fillsubsss;
		adminadd = adminadd + ["  Give +1 Coin",admincoinPlusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -1 Coin",admincoinMinusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5 Coin",admincoinPlusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5 Coin",admincoinMinusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10 Coin",admincoinPlusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10 Coin",admincoinMinusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +50 Coin",admincoinPlusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50 Coin",admincoinMinusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100 Coin",admincoinPlus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100 Coin",admincoinMinus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500 Coin",admincoinPlus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500 Coin",admincoinMinus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +2500 Coin",admincoinPlus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -2500 Coin",admincoinMinus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5000 Coin",admincoinPlus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5000 Coin",admincoinMinus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10000 Coin",admincoinPlus4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10000 Coin",admincoinMinus4,"0","0","0","1",[0,0.8,1,1]];
	        adminadd = adminadd + ["  Give +50000 Coin",admincoinPlus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50000 Coin",admincoinMinus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100000 Coin",admincoinPlus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100000 Coin",admincoinMinus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500000 Coin",admincoinPlus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500000 Coin",admincoinMinus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +IM RICH BITCH",admincoinPlusRich,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -IM RICH BITCH",admincoinMinusRich,"0","0","0","1",[0,0.8,1,1]];
		call admin__FILL_MENUS;
	};	

Then Find:

	adminHumanityPlus =
	{
		{
			if (name _x == _this select 0) then
			{
				_humanity = _x getVariable['humanity',0];
				_x setVariable['humanity',_humanity+2500,true];
				hint format['Gave %1 +2500 Humanity!',_this select 0];

Above that put:

 

        admincoinPlusa4 =


    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+1,true];
                hint format['Gave %1 +1 Coins!',_this select 0];
                
                _sl = format['%1 plus 1 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinusa4 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-1,true];
                hint format['Gave %1 -1 Coins!',_this select 0];
                
                _sl = format['%1 minus 1 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlusa3 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+5,true];
                hint format['Gave %1 +5 Coins!',_this select 0];
                
                _sl = format['%1 plus 5 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinusa3 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-5,true];
                hint format['Gave %1 -5 Coins!',_this select 0];
                
                _sl = format['%1 minus 5 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlusa2 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+10,true];
                hint format['Gave %1 +10 Coins!',_this select 0];
                
                _sl = format['%1 plus 10 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinusa2 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-10,true];
                hint format['Gave %1 -10 Coins!',_this select 0];
                
                _sl = format['%1 minus 10 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
        admincoinPlusa1 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+50,true];
                hint format['Gave %1 +50 Coins!',_this select 0];
                
                _sl = format['%1 plus 50 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinusa1 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-50,true];
                hint format['Gave %1 -50 Coins!',_this select 0];
                
                _sl = format['%1 minus 50 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlus =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+100,true];
                hint format['Gave %1 +100 Coins!',_this select 0];
                
                _sl = format['%1 plus 100 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-100,true];
                hint format['Gave %1 -100 Coins!',_this select 0];
                
                _sl = format['%1 minus 100 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlus1 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+500,true];
                hint format['Gave %1 +500 Coins!',_this select 0];
                
                _sl = format['%1 plus 500 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus1 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-500,true];
                hint format['Gave %1 -500 cashMoney!',_this select 0];
                
                _sl = format['%1 minus 500 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlus2 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+2500,true];
                hint format['Gave %1 +2500 Coins!',_this select 0];
                
                _sl = format['%1 plus 2500 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus2 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-2500,true];
                hint format['Gave %1 -2500 Coins!',_this select 0];
                
                _sl = format['%1 minus 2500 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlus3 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+5000,true];
                hint format['Gave %1 +5000 Coins!',_this select 0];
                
                _sl = format['%1 plus 5000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus3 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-5000,true];
                hint format['Gave %1 -5000 Coins!',_this select 0];
                
                _sl = format['%1 minus 5000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlus4 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+10000,true];
                hint format['Gave %1 +10000 Coins!',_this select 0];
                
                _sl = format['%1 plus 10000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus4 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-10000,true];
                hint format['Gave %1 -10000 Coins!',_this select 0];
                
                _sl = format['%1 minus 10000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
        admincoinPlus5 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+50000,true];
                hint format['Gave %1 +50000 Coins!',_this select 0];
                
                _sl = format['%1 plus 50000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus5 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-50000,true];
                hint format['Gave %1 -50000 Coins!',_this select 0];
                
                _sl = format['%1 minus 50000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
        admincoinPlus6 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+100000,true];
                hint format['Gave %1 +100000 Coins!',_this select 0];
                
                _sl = format['%1 plus 100000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus6 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-100000,true];
                hint format['Gave %1 -100000 Coins!',_this select 0];
                
                _sl = format['%1 minus 100000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
        admincoinPlus7 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+500000,true];
                hint format['Gave %1 +500000 Coins!',_this select 0];
                
                _sl = format['%1 plus 500000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinus7 =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-500000,true];
                hint format['Gave %1 -500000 Coins!',_this select 0];
                
                _sl = format['%1 minus 500000 Coins to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinPlusRich =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney+100000000000,true];
                hint format['Gave %1 +100000000000 Coins!',_this select 0];
                
                _sl = format['%1 plus 100000000000 cashMoney to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };
    admincoinMinusRich =
    {
        {
            if (name _x == _this select 0) then
            {
                _cashMoney = _x getVariable['cashMoney',0];
                _x setVariable['cashMoney',_cashMoney-100000000000,true];
                hint format['Gave %1 -100000000000 cashMoney!',_this select 0];
                
                _sl = format['%1 minus 100000000000 cashMoney to %2',name player,_this select 0];
                PVAH_WriteLogReq = [player,toArray _sl];
                publicVariableServer 'PVAH_WriteLogReq';
            };
        } forEach playableUnits;
    };

 

So it Looks like This

 

admincoinPlusa4 =

{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+1,true];
hint format['Gave %1 +1 Coins!',_this select 0];
 
_sl = format['%1 plus 1 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-1,true];
hint format['Gave %1 -1 Coins!',_this select 0];
 
_sl = format['%1 minus 1 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+5,true];
hint format['Gave %1 +5 Coins!',_this select 0];
 
_sl = format['%1 plus 5 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-5,true];
hint format['Gave %1 -5 Coins!',_this select 0];
 
_sl = format['%1 minus 5 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+10,true];
hint format['Gave %1 +10 Coins!',_this select 0];
 
_sl = format['%1 plus 10 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-10,true];
hint format['Gave %1 -10 Coins!',_this select 0];
 
_sl = format['%1 minus 10 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+50,true];
hint format['Gave %1 +50 Coins!',_this select 0];
 
_sl = format['%1 plus 50 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-50,true];
hint format['Gave %1 -50 Coins!',_this select 0];
 
_sl = format['%1 minus 50 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100,true];
hint format['Gave %1 +100 Coins!',_this select 0];
 
_sl = format['%1 plus 100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100,true];
hint format['Gave %1 -100 Coins!',_this select 0];
 
_sl = format['%1 minus 100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+500,true];
hint format['Gave %1 +500 Coins!',_this select 0];
 
_sl = format['%1 plus 500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-500,true];
hint format['Gave %1 -500 cashMoney!',_this select 0];
 
_sl = format['%1 minus 500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+2500,true];
hint format['Gave %1 +2500 Coins!',_this select 0];
 
_sl = format['%1 plus 2500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-2500,true];
hint format['Gave %1 -2500 Coins!',_this select 0];
 
_sl = format['%1 minus 2500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+5000,true];
hint format['Gave %1 +5000 Coins!',_this select 0];
 
_sl = format['%1 plus 5000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-5000,true];
hint format['Gave %1 -5000 Coins!',_this select 0];
 
_sl = format['%1 minus 5000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+10000,true];
hint format['Gave %1 +10000 Coins!',_this select 0];
 
_sl = format['%1 plus 10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-10000,true];
hint format['Gave %1 -10000 Coins!',_this select 0];
 
_sl = format['%1 minus 10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus5 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+50000,true];
hint format['Gave %1 +50000 Coins!',_this select 0];
 
_sl = format['%1 plus 50000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus5 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-50000,true];
hint format['Gave %1 -50000 Coins!',_this select 0];
 
_sl = format['%1 minus 50000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus6 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100000,true];
hint format['Gave %1 +100000 Coins!',_this select 0];
 
_sl = format['%1 plus 100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus6 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100000,true];
hint format['Gave %1 -100000 Coins!',_this select 0];
 
_sl = format['%1 minus 100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus7 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+500000,true];
hint format['Gave %1 +500000 Coins!',_this select 0];
 
_sl = format['%1 plus 500000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus7 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-500000,true];
hint format['Gave %1 -500000 Coins!',_this select 0];
 
_sl = format['%1 minus 500000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusRich =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100000000000,true];
hint format['Gave %1 +100000000000 Coins!',_this select 0];
 
_sl = format['%1 plus 100000000000 cashMoney to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusRich =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100000000000,true];
hint format['Gave %1 -100000000000 cashMoney!',_this select 0];
 
_sl = format['%1 minus 100000000000 cashMoney to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
adminHumanityPlus =
{
{
if (name _x == _this select 0) then
{
_humanity = _x getVariable['humanity',0];
_x setVariable['humanity',_humanity+2500,true];

hint format['Gave %1 +2500 Humanity!',_this select 0];

 

 

 

That's It

 

:)

 

Save And Restart Your Sever

Link to comment
Share on other sites

 

Hello People's Of DayZ

 

Im Going to Show you How to install Coin's add on for infastar

==========================

You need to have the FULL version of infastar

=============================== 

 

First Find AH.sqf in you're "init" Folder

 

Then Find the following in your "AH.sqf"

_log2 = format['Blood: %1  Humanity: %2

And replace that with (only if you have Zupa 3.0)

_log2 = format['Blood: %1  Humanity: %2  Coins: %3',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['cashMoney',0])];

If You have Global Banking (E.X Zupa 1.1)

_log2 = format['Blood: %1  Humanity: %2  Coins: %3   Bank: 4%',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['headShots',0]),(_unit getVariable['bank',0])];

Then Find:

adminadd = adminadd + ["   +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
		};
		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
	};

And under that Put:

admin_fillCoinMenu =
	{
		inSub = false;
		_ctrl = 2 call getControl;
		lbclear _ctrl;
		_ctrl ctrlSetFont "TahomaB";
		adminadd = [];
		call admin_fillsubsss;
		adminadd = adminadd + ["  Give +1 Coin",admincoinPlusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -1 Coin",admincoinMinusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5 Coin",admincoinPlusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5 Coin",admincoinMinusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10 Coin",admincoinPlusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10 Coin",admincoinMinusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +50 Coin",admincoinPlusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50 Coin",admincoinMinusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100 Coin",admincoinPlus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100 Coin",admincoinMinus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500 Coin",admincoinPlus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500 Coin",admincoinMinus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +2500 Coin",admincoinPlus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -2500 Coin",admincoinMinus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5000 Coin",admincoinPlus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5000 Coin",admincoinMinus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10000 Coin",admincoinPlus4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10000 Coin",admincoinMinus4,"0","0","0","1",[0,0.8,1,1]];
	        adminadd = adminadd + ["  Give +50000 Coin",admincoinPlus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50000 Coin",admincoinMinus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100000 Coin",admincoinPlus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100000 Coin",admincoinMinus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500000 Coin",admincoinPlus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500000 Coin",admincoinMinus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +IM RICH BITCH",admincoinPlusRich,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -IM RICH BITCH",admincoinMinusRich,"0","0","0","1",[0,0.8,1,1]];
		call admin__FILL_MENUS;
	};	

So It Looks Like

			adminadd = adminadd + ["   +View TimeLord Menu","AAATime","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Surveillance Log: (%1)",((count PV_SurveillanceLog)-1)]),"SurveillanceLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View Hacker Log: (%1)",((count PV_hackerL0og)-1)]),"hackerLog","0","0","1","0",[0,0.6,1,1]];
			adminadd = adminadd + [(format["   -View TempBanned Log: (%1)",round((count PVAH_AHTMPBAN)/2)]),"tempbanned","0","0","1","0",[0,0.6,1,1]];
		};
		adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
	};
	admin_fillCoinMenu =
	{
		inSub = false;
		_ctrl = 2 call getControl;
		lbclear _ctrl;
		_ctrl ctrlSetFont "TahomaB";
		adminadd = [];
		call admin_fillsubsss;
		adminadd = adminadd + ["  Give +1 Coin",admincoinPlusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -1 Coin",admincoinMinusa4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5 Coin",admincoinPlusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5 Coin",admincoinMinusa3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10 Coin",admincoinPlusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10 Coin",admincoinMinusa2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +50 Coin",admincoinPlusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50 Coin",admincoinMinusa1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100 Coin",admincoinPlus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100 Coin",admincoinMinus,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500 Coin",admincoinPlus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500 Coin",admincoinMinus1,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +2500 Coin",admincoinPlus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -2500 Coin",admincoinMinus2,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +5000 Coin",admincoinPlus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -5000 Coin",admincoinMinus3,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +10000 Coin",admincoinPlus4,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -10000 Coin",admincoinMinus4,"0","0","0","1",[0,0.8,1,1]];
	        adminadd = adminadd + ["  Give +50000 Coin",admincoinPlus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -50000 Coin",admincoinMinus5,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +100000 Coin",admincoinPlus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -100000 Coin",admincoinMinus6,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +500000 Coin",admincoinPlus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -500000 Coin",admincoinMinus7,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give +IM RICH BITCH",admincoinPlusRich,"0","0","0","1",[0,0.8,1,1]];
		adminadd = adminadd + ["  Give -IM RICH BITCH",admincoinMinusRich,"0","0","0","1",[0,0.8,1,1]];
		call admin__FILL_MENUS;
	};	

Then Find:

	adminHumanityPlus =
	{
		{
			if (name _x == _this select 0) then
			{
				_humanity = _x getVariable['humanity',0];
				_x setVariable['humanity',_humanity+2500,true];
				hint format['Gave %1 +2500 Humanity!',_this select 0];

Above that put:

 

        admincoinPlusa4 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+1,true];

                hint format['Gave %1 +1 Coins!',_this select 0];

                

                _sl = format['%1 plus 1 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinusa4 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-1,true];

                hint format['Gave %1 -1 Coins!',_this select 0];

                

                _sl = format['%1 minus 1 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlusa3 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+5,true];

                hint format['Gave %1 +5 Coins!',_this select 0];

                

                _sl = format['%1 plus 5 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinusa3 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-5,true];

                hint format['Gave %1 -5 Coins!',_this select 0];

                

                _sl = format['%1 minus 5 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlusa2 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+10,true];

                hint format['Gave %1 +10 Coins!',_this select 0];

                

                _sl = format['%1 plus 10 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinusa2 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-10,true];

                hint format['Gave %1 -10 Coins!',_this select 0];

                

                _sl = format['%1 minus 10 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

        admincoinPlusa1 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+50,true];

                hint format['Gave %1 +50 Coins!',_this select 0];

                

                _sl = format['%1 plus 50 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinusa1 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-50,true];

                hint format['Gave %1 -50 Coins!',_this select 0];

                

                _sl = format['%1 minus 50 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlus =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+100,true];

                hint format['Gave %1 +100 Coins!',_this select 0];

                

                _sl = format['%1 plus 100 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-100,true];

                hint format['Gave %1 -100 Coins!',_this select 0];

                

                _sl = format['%1 minus 100 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlus1 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+500,true];

                hint format['Gave %1 +500 Coins!',_this select 0];

                

                _sl = format['%1 plus 500 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus1 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-500,true];

                hint format['Gave %1 -500 cashMoney!',_this select 0];

                

                _sl = format['%1 minus 500 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlus2 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+2500,true];

                hint format['Gave %1 +2500 Coins!',_this select 0];

                

                _sl = format['%1 plus 2500 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus2 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-2500,true];

                hint format['Gave %1 -2500 Coins!',_this select 0];

                

                _sl = format['%1 minus 2500 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlus3 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+5000,true];

                hint format['Gave %1 +5000 Coins!',_this select 0];

                

                _sl = format['%1 plus 5000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus3 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-5000,true];

                hint format['Gave %1 -5000 Coins!',_this select 0];

                

                _sl = format['%1 minus 5000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlus4 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+10000,true];

                hint format['Gave %1 +10000 Coins!',_this select 0];

                

                _sl = format['%1 plus 10000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus4 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-10000,true];

                hint format['Gave %1 -10000 Coins!',_this select 0];

                

                _sl = format['%1 minus 10000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

        admincoinPlus5 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+50000,true];

                hint format['Gave %1 +50000 Coins!',_this select 0];

                

                _sl = format['%1 plus 50000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus5 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-50000,true];

                hint format['Gave %1 -50000 Coins!',_this select 0];

                

                _sl = format['%1 minus 50000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

        admincoinPlus6 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+100000,true];

                hint format['Gave %1 +100000 Coins!',_this select 0];

                

                _sl = format['%1 plus 100000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus6 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-100000,true];

                hint format['Gave %1 -100000 Coins!',_this select 0];

                

                _sl = format['%1 minus 100000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

        admincoinPlus7 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+500000,true];

                hint format['Gave %1 +500000 Coins!',_this select 0];

                

                _sl = format['%1 plus 500000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinus7 =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-500000,true];

                hint format['Gave %1 -500000 Coins!',_this select 0];

                

                _sl = format['%1 minus 500000 Coins to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinPlusRich =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney+100000000000,true];

                hint format['Gave %1 +100000000000 Coins!',_this select 0];

                

                _sl = format['%1 plus 100000000000 cashMoney to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

    admincoinMinusRich =

    {

        {

            if (name _x == _this select 0) then

            {

                _cashMoney = _x getVariable['cashMoney',0];

                _x setVariable['cashMoney',_cashMoney-100000000000,true];

                hint format['Gave %1 -100000000000 cashMoney!',_this select 0];

                

                _sl = format['%1 minus 100000000000 cashMoney to %2',name player,_this select 0];

                PVAH_WriteLogReq = [player,toArray _sl];

                publicVariableServer 'PVAH_WriteLogReq';

            };

        } forEach playableUnits;

    };

 

So it Looks like This

 

admincoinPlusa4 =

{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+1,true];
hint format['Gave %1 +1 Coins!',_this select 0];
 
_sl = format['%1 plus 1 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-1,true];
hint format['Gave %1 -1 Coins!',_this select 0];
 
_sl = format['%1 minus 1 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+5,true];
hint format['Gave %1 +5 Coins!',_this select 0];
 
_sl = format['%1 plus 5 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-5,true];
hint format['Gave %1 -5 Coins!',_this select 0];
 
_sl = format['%1 minus 5 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+10,true];
hint format['Gave %1 +10 Coins!',_this select 0];
 
_sl = format['%1 plus 10 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-10,true];
hint format['Gave %1 -10 Coins!',_this select 0];
 
_sl = format['%1 minus 10 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusa1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+50,true];
hint format['Gave %1 +50 Coins!',_this select 0];
 
_sl = format['%1 plus 50 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusa1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-50,true];
hint format['Gave %1 -50 Coins!',_this select 0];
 
_sl = format['%1 minus 50 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100,true];
hint format['Gave %1 +100 Coins!',_this select 0];
 
_sl = format['%1 plus 100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100,true];
hint format['Gave %1 -100 Coins!',_this select 0];
 
_sl = format['%1 minus 100 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+500,true];
hint format['Gave %1 +500 Coins!',_this select 0];
 
_sl = format['%1 plus 500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus1 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-500,true];
hint format['Gave %1 -500 cashMoney!',_this select 0];
 
_sl = format['%1 minus 500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+2500,true];
hint format['Gave %1 +2500 Coins!',_this select 0];
 
_sl = format['%1 plus 2500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus2 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-2500,true];
hint format['Gave %1 -2500 Coins!',_this select 0];
 
_sl = format['%1 minus 2500 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+5000,true];
hint format['Gave %1 +5000 Coins!',_this select 0];
 
_sl = format['%1 plus 5000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus3 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-5000,true];
hint format['Gave %1 -5000 Coins!',_this select 0];
 
_sl = format['%1 minus 5000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+10000,true];
hint format['Gave %1 +10000 Coins!',_this select 0];
 
_sl = format['%1 plus 10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus4 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-10000,true];
hint format['Gave %1 -10000 Coins!',_this select 0];
 
_sl = format['%1 minus 10000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus5 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+50000,true];
hint format['Gave %1 +50000 Coins!',_this select 0];
 
_sl = format['%1 plus 50000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus5 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-50000,true];
hint format['Gave %1 -50000 Coins!',_this select 0];
 
_sl = format['%1 minus 50000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus6 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100000,true];
hint format['Gave %1 +100000 Coins!',_this select 0];
 
_sl = format['%1 plus 100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus6 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100000,true];
hint format['Gave %1 -100000 Coins!',_this select 0];
 
_sl = format['%1 minus 100000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlus7 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+500000,true];
hint format['Gave %1 +500000 Coins!',_this select 0];
 
_sl = format['%1 plus 500000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinus7 =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-500000,true];
hint format['Gave %1 -500000 Coins!',_this select 0];
 
_sl = format['%1 minus 500000 Coins to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinPlusRich =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney+100000000000,true];
hint format['Gave %1 +100000000000 Coins!',_this select 0];
 
_sl = format['%1 plus 100000000000 cashMoney to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
admincoinMinusRich =
{
{
if (name _x == _this select 0) then
{
_cashMoney = _x getVariable['cashMoney',0];
_x setVariable['cashMoney',_cashMoney-100000000000,true];
hint format['Gave %1 -100000000000 cashMoney!',_this select 0];
 
_sl = format['%1 minus 100000000000 cashMoney to %2',name player,_this select 0];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
} forEach playableUnits;
};
adminHumanityPlus =
{
{
if (name _x == _this select 0) then
{
_humanity = _x getVariable['humanity',0];
_x setVariable['humanity',_humanity+2500,true];

hint format['Gave %1 +2500 Humanity!',_this select 0];

 

 

 

That's It

 

:)

 

Save And Restart Your Sever

 

 

Yeah, there's already a thread on Zupa's dev site about this.

 

http://devzupa.be/forum/viewtopic.php?id=3

Link to comment
Share on other sites

my bad i ment to put this in here but this is more for the debug 


_cashMoney = player getVariable['cashMoney',0];
if (_cashMoney > 999999) then
{
_cashMoney = [_cashMoney] call fnc_format_cashMoney;
_cashMoney = toArray _cashMoney;
_cashMoney = _cashMoney - [44];
_cashMoney = toString _cashMoney;
};
fnc_format_cashMoney = {
		private ['_number', '_minus', '_out'];
		_number = _this select 0;
		_minus = false;
		if (_number < 0) then
		{
			_cashMoney = abs _number;
			_minus = true;
		};
		_out = [_number] call BIS_fnc_numberText;
		if (_minus) then
		{
			_out = '-' + _out;
		};
		_out
	};
Link to comment
Share on other sites

  • 2 months later...

for some reason im not getting a view coins menu. the instructions are as easy as it gets. i have checked the install several times. can anyone point me in directions to trouble shoot. i dont see any errors in the rpt and everything else is working fine. im running chernarus map overpoch 1.0.5.1 / 0.2.5, infiSTAR 08/04/2015/v1401, zupa sc 3.0

 

got it. thank you for sharing!

Link to comment
Share on other sites

  • 3 weeks later...

for some reason im not getting a view coins menu. the instructions are as easy as it gets. i have checked the install several times. can anyone point me in directions to trouble shoot. i dont see any errors in the rpt and everything else is working fine. im running chernarus map overpoch 1.0.5.1 / 0.2.5, infiSTAR 08/04/2015/v1401, zupa sc 3.0

 

got it. thank you for sharing!

can you enlighten us maybe?

i have the same problem... the lines never show up in the menu...

shouldnt this admin_fillCoinMenu be called somewhere to function?

Link to comment
Share on other sites

Hi Guys had a problem getting this to show up: added this and now it all shows up and works -I have added it to just Super Admin

 

_puid = getPlayerUID player;
if(_puid in PV_SuperLevel_List) then

 

adminadd = adminadd + ["   +View WeatherLord Menu","Weather","0","0","1","0",[0,0.6,1,1]];
adminadd = adminadd + ["   +View Coin Menu","coin","0","0","1","0",[0,0.6,1,1]];

 

then add:

case 'Weather':{call admin_weather};
case 'AAATime':{call admin_time};

case 'coin':{call admin_fillCoinMenu};

 under admin_dbclick = (heading)

 

 

MegaZ

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

Hi Guys had a problem getting this to show up: added this and now it all shows up and works -I have added it to just Super Admin

 

_puid = getPlayerUID player;
if(_puid in PV_SuperLevel_List) then

 

adminadd = adminadd + ["   +View WeatherLord Menu","Weather","0","0","1","0",[0,0.6,1,1]];
adminadd = adminadd + ["   +View Coin Menu","coin","0","0","1","0",[0,0.6,1,1]];

 

then add:

case 'Weather':{call admin_weather};
case 'AAATime':{call admin_time};

case 'coin':{call admin_fillCoinMenu};

 under admin_dbclick = (heading)

Add this post to the topic +

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...