sourcemod/plugins/admin-flatfile/admin-flatfile.sp
David Anderson 0c56f71a61 cleaned up levels in both the admin plugin and the source code
overrides use full flag bits now

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40445
2007-02-06 05:48:52 +00:00

34 lines
786 B
SourcePawn

#include <sourcemod>
#include <textparse>
public Plugin:myinfo =
{
name = "Admin Base",
author = "AlliedModders LLC",
description = "Reads admin files",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
};
/** Various globals */
new bool:g_FlagsSet[26]; /* Maps whether flags are set */
new AdminFlag:g_FlagLetters[26]; /* Maps the flag letters */
new bool:g_LoggedFileName = false; /* Whether or not the file name has been logged */
new g_ErrorCount = 0;
#include "admin-levels.sp"
#include "admin-overrides.sp"
#include "admin-groups.sp"
public OnRebuildAdminCache(AdminCachePart:part)
{
RefreshLevels();
if (part == AdminCache_Overrides)
{
ReadOverrides();
} else if (part == AdminCache_Groups)
{
ReadGroups();
}
}