Feature #21731

Implement ENABLE and DISABLE functions for users

Added by rexehuk about 4 years ago. Updated about 4 years ago.

Status:Closed Start date:07/02/2011
Priority:Normal Due date:
Assignee:rexehuk % Done:

100%

Category:-
Target version:-

Description

To do

History

Updated by rexehuk about 4 years ago

  • Status changed from New to Resolved
  • Assignee set to rexehuk

PRELIMINARY CODE

/*

NIAC_fnc_Zone Activate

Accepts string IDs for activation

*/

private ["_deactivateID","_zoneCheck"];

_array = this select 0;

for "_i" from 0 to count _array do

{

_activateID = format["%1",_array select _i];

if (_activateID in NIAC_DeactivatedList) then

{

{
_zoneCheck = _x select 0;
if (_zoneCheck == _activateID) then
{
_moveVar = _x;
NIAC_ActivateDB set [count NIAC_ActivateDB, _x];
_activateID - [NIAC_DeactivatedList];
NIAC_ActivatedList set [count
NIAC_ActivatedList, _activateID];
}
} forEach NIAC_DeactivDB;

} else

{

hint "No Zone Matching That Name";

};

/*

Zone Deactivate

Accepts string IDs for deactivation

*/

private ["_deactivateID","_zoneCheck"];

_array = this select 0;

for "_i" from 0 to count _array do

{

_deactivateID = format["%1",_array select _i];

if (_deactivateID in NIAC_ActivatedList) then

{

{
_zoneCheck = _x select 0;
if (_zoneCheck == _deactivateID) then
{
_moveVar = _x;
NIAC_DeactivateDB set [count NIAC_DeactivateDB,
_x];
_deactivateID - [NIAC_ActivatedList];
NIAC_DeactivatedList set [count
NIAC_DeactivatedList, _deactivateID];
}
} forEach NIAC_ActivatedDB;

};

} else

{

hint "No zone found matching that name";

};

Updated by rexehuk about 4 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF