mirror of
https://github.com/Bjanski/ExAd.git
synced 2024-08-30 16:52:14 +00:00
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:
@ -0,0 +1 @@
|
||||
/*
|
@ -40,6 +40,7 @@ class CfgFunctions {
|
||||
class createCrate {};
|
||||
class createMarker {};
|
||||
class putInContainer {};
|
||||
class territoryPlayerPresent {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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];
|
||||
};
|
||||
|
Reference in New Issue
Block a user