Guest User

Untitled

a guest
Jun 13th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1.         decl String:configFlag[128];
  2.         decl String:section[32];
  3.         new bool:found = false;
  4.         do {
  5.             KvGetSectionName(configFile, section, sizeof(section));
  6.             KvGetString(configFile, "custom_override", configFlag, sizeof(configFlag));
  7.             if(strlen(configFlag) == 0 && StrContains(section, "STEAM_", false) == -1 && StrContains(section, "[U:1:", false) == -1) {
  8.                 found = true;
  9.                 break;
  10.             }
  11.             if(CheckCommandAccess(client, configFlag, ADMFLAG_ROOT, false)) { // Where I check for the custom override
  12.                 found = true;
  13.                 break;
  14.             }
  15.         } while(KvGotoNextKey(configFile));
  16.         if(!found) {
  17.             return;
  18.         }
  19.     }
Add Comment
Please, Sign In to add comment