v0.7.6 build 20

Solved the issue where territoryPlayerPresent used an array instead of a
number for the comparison.
This commit is contained in:
Bjanski
2016-06-10 01:22:31 +02:00
parent 28770808a9
commit f1d8a9fa27
9 changed files with 14 additions and 13 deletions

View File

@ -40,6 +40,7 @@ class CfgFunctions {
class createCrate {};
class createMarker {};
class putInContainer {};
class territoryPlayerPresent {};
};
};
};

View File

@ -23,6 +23,11 @@ _player = objectFromNetId ([_this, 1, "",[""]] call BIS_fnc_param);
if(isNull _object || isNull _player)exitWith{false};
_flag = ((getPos _object) nearObjects ["Exile_Construction_Flag_Static", 150]) select 0;
if(ExAd_HACKING_PLAYER_ONLINE && !([_flag] call ExAdServer_fnc_territoryPlayerPresent))exitWith{
[STR_ExAd_HACKING_NOTI_NO_PLAYER_PRESENT ,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player];
};
if(_flag getVariable ["ExAd_HACKS_SUCCEEDED",0] >= ExAd_HACKING_TERRITORY_MAX)exitWith{
[STR_ExAd_HACKING_NOTI_MAX_TERRITORY_HACKS_REACHED ,0,0.6,2,0] remoteExec ["BIS_fnc_dynamicText",owner _player];
};