Wasteland Admins

  • Offline mcgee
  • Fresh Spawn
  • *
  • Posts: 12

Wasteland Admins

« posted: Dec 09, 2017, 10:23 AM »
Im trying to do this

_result = [["getPlayerAdminLevel", _uid], 2] call extDB_Database_async;
if (count _result > 0) then {
   _adminlevel = _result param [0,0];
};
switch (_adminlevel) do
{
   case 1:
   {
      pushBack ["lowAdmins", _uid];
   };
   case 2:
   {
      pushBack ["highAdmins", _uid];
   };
   case 3:
   {
      pushBack ["serverAdmins", _uid];
   };
};

but where would i put it and how would i get it to work properly?
  • Offline mcgee
  • Fresh Spawn
  • *
  • Posts: 12

Re: Wasteland Admins

« Reply #1 posted: Dec 09, 2017, 11:54 AM »
Is it possible to just build the array from the database and not use the sqf file for admins just wondering?