Changed indentation
This commit is contained in:
parent
176d8f1447
commit
252c3cb38a
|
@ -10,38 +10,38 @@ sleep 1;
|
|||
|
||||
_commanderobj = [] call KPLIB_fnc_getCommander;
|
||||
if ( !isNull _commanderobj ) then {
|
||||
if ( player == _commanderobj && !(serverCommandAvailable "#kick")) then {
|
||||
if ( player == _commanderobj && !(serverCommandAvailable "#kick")) then {
|
||||
|
||||
_tagmatch = false;
|
||||
_idmatch = false;
|
||||
_namematch = false;
|
||||
_tagmatch = false;
|
||||
_idmatch = false;
|
||||
_namematch = false;
|
||||
|
||||
if ( !isNil "GRLIB_whitelisted_tags" ) then {
|
||||
if ( count (squadParams _commanderobj) != 0 ) then {
|
||||
if ( ((squadParams _commanderobj select 0) select 0) in GRLIB_whitelisted_tags ) then {
|
||||
_tagmatch = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
if ( !isNil "GRLIB_whitelisted_tags" ) then {
|
||||
if ( count (squadParams _commanderobj) != 0 ) then {
|
||||
if ( ((squadParams _commanderobj select 0) select 0) in GRLIB_whitelisted_tags ) then {
|
||||
_tagmatch = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
if ( !isNil "GRLIB_whitelisted_steamids" ) then {
|
||||
if ( ( getPlayerUID _commanderobj ) in GRLIB_whitelisted_steamids ) then {
|
||||
_idmatch = true;
|
||||
};
|
||||
};
|
||||
if ( !isNil "GRLIB_whitelisted_steamids" ) then {
|
||||
if ( ( getPlayerUID _commanderobj ) in GRLIB_whitelisted_steamids ) then {
|
||||
_idmatch = true;
|
||||
};
|
||||
};
|
||||
|
||||
if ( !isNil "GRLIB_whitelisted_names" ) then {
|
||||
if ( ( name _commanderobj ) in GRLIB_whitelisted_names ) then {
|
||||
_namematch = true;
|
||||
};
|
||||
};
|
||||
if ( !isNil "GRLIB_whitelisted_names" ) then {
|
||||
if ( ( name _commanderobj ) in GRLIB_whitelisted_names ) then {
|
||||
_namematch = true;
|
||||
};
|
||||
};
|
||||
|
||||
if ( !( _tagmatch || _idmatch || _namematch ) ) then {
|
||||
if ( !( _tagmatch || _idmatch || _namematch ) ) then {
|
||||
|
||||
sleep 1;
|
||||
if ( alive _commanderobj ) then {
|
||||
endMission "END1";
|
||||
};
|
||||
};
|
||||
};
|
||||
sleep 1;
|
||||
if ( alive _commanderobj ) then {
|
||||
endMission "END1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue