prepare for 1.11 (and useless shit because 1.11 bug)

This commit is contained in:
BotoX 2019-11-13 12:05:24 +01:00
parent 1b388d585a
commit 1a8ab9d8a9
4 changed files with 380 additions and 374 deletions

View File

@ -2,7 +2,6 @@
#include <sdktools>
#include <sdkhooks>
#include <zombiereloaded>
#include <multicolors>
#include <hlstatsx_loghelper>
#pragma semicolon 1

View File

@ -1,4 +1,3 @@
#include <multicolors>
#include <sourcemod>
#include <sdkhooks>
#include <zombiereloaded>

View File

@ -1736,10 +1736,12 @@ public AdminsDone(Handle:owner, Handle:hndl, const String:error[], any:data)
if (flags[i] < 'a' || flags[i] > 'z')
continue;
if (g_FlagLetters[flags[i]-'a'] < Admin_Reservation)
int flag = flags[i]-'a';
if (g_FlagLetters[flag] < Admin_Reservation)
continue;
SetAdminFlag(curAdm, g_FlagLetters[flags[i]-'a'], true);
SetAdminFlag(curAdm, g_FlagLetters[flag], true);
}
++admCount;
}
@ -1813,10 +1815,12 @@ public GroupsDone(Handle:owner, Handle:hndl, const String:error[], any:data)
if (grpFlags[i] < 'a' || grpFlags[i] > 'z')
continue;
if (g_FlagLetters[grpFlags[i]-'a'] < Admin_Reservation)
int flag = grpFlags[i]-'a';
if (g_FlagLetters[flag] < Admin_Reservation)
continue;
SetAdmGroupAddFlag(curGrp, g_FlagLetters[grpFlags[i]-'a'], true);
SetAdmGroupAddFlag(curGrp, g_FlagLetters[flag], true);
}
// Set the group immunity.
@ -2554,7 +2558,7 @@ stock AdminFlag:CreateFlagLetters()
stock AccountForLateLoading()
{
decl String:auth[30];
for (new i = 1; i <= GetMaxClients(); i++)
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientConnected(i) && !IsFakeClient(i))
{