mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Small Fix for AdminTools
This commit is contained in:
parent
910b3703e8
commit
32d73a7fac
@ -36,13 +36,19 @@ if (!isNull _building) then {
|
||||
};
|
||||
|
||||
// Check if building killer is the owner and log accordingly
|
||||
if ((_building getVariable["BUILD_OWNER", "-1"]) in [getPlayerUID _killer, _killer getVariable["GROUP", ""]]) then
|
||||
{
|
||||
['BuildingRemoved', format["%1 was removed by %2 (owner) at %3", typeOf _building, _killer, getPosATL _building]] call EPOCH_fnc_server_hiveLog;
|
||||
if (_killer isequaltype objnull) then {
|
||||
if ((_building getVariable["BUILD_OWNER", "-1"]) in [getPlayerUID _killer, _killer getVariable["GROUP", ""]]) then
|
||||
{
|
||||
['BuildingRemoved', format["%1 was removed by %2 (owner) at %3", typeOf _building, _killer, getPosATL _building]] call EPOCH_fnc_server_hiveLog;
|
||||
}
|
||||
else
|
||||
{
|
||||
['BuildingKilled', format["%1 was killed by %2 at %3", typeOf _building, _killer, getPosATL _building]] call EPOCH_fnc_server_hiveLog;
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
['BuildingKilled', format["%1 was killed by %2 at %3", typeOf _building, _killer, getPosATL _building]] call EPOCH_fnc_server_hiveLog;
|
||||
else {
|
||||
// Killer is no Obj, but a String (some AdminTools use it)
|
||||
['BuildingRemoved', format["%1 was removed by %2 at %3", typeOf _building, _killer, getPosATL _building]] call EPOCH_fnc_server_hiveLog;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user