1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/plugins/admin-flatfile/admin-flatfile.sp Tue Feb 06 05:13:24 2007 +0000
1.3 @@ -0,0 +1,32 @@
1.4 +#include <sourcemod>
1.5 +#include <textparse>
1.6 +
1.7 +public Plugin:myinfo =
1.8 +{
1.9 + name = "Admin Base",
1.10 + author = "AlliedModders LLC",
1.11 + description = "Reads admin files",
1.12 + version = "1.0.0.0",
1.13 + url = "http://www.sourcemod.net/"
1.14 +};
1.15 +
1.16 +/** Various globals */
1.17 +new AdminFlag:g_FlagLetters[26]; /* Maps the flag letters */
1.18 +new bool:g_LoggedFileName = false; /* Whether or not the file name has been logged */
1.19 +new g_ErrorCount = 0;
1.20 +
1.21 +#include "admin-levels.sp"
1.22 +#include "admin-overrides.sp"
1.23 +#include "admin-groups.sp"
1.24 +
1.25 +public OnRebuildAdminCache(AdminCachePart:part)
1.26 +{
1.27 + RefreshLevels();
1.28 + if (part == AdminCache_Overrides)
1.29 + {
1.30 + ReadOverrides();
1.31 + } else if (part == AdminCache_Groups)
1.32 + {
1.33 + ReadGroups();
1.34 + }
1.35 +}