mapchooser: fix admin nominate menu restrictions

This commit is contained in:
BotoX
2019-11-26 22:00:23 +01:00
parent 1212dfa905
commit 013e68764f
2 changed files with 37 additions and 113 deletions
@@ -2286,7 +2286,7 @@ public int Native_GetMapGroupRestriction(Handle plugin, int numParams)
{
// Check if client has nominated a map in the same group and can change their nomination
bool okay = false;
if(client > 0 && client < MaxClients)
if(client >= 1 && client <= MaxClients)
{
int index = FindValueInArray(g_NominateOwners, client);
if(index != -1)
@@ -2322,7 +2322,7 @@ public int Native_GetMapVIPRestriction(Handle plugin, int numParams)
GetNativeString(1, map, len+1);
// Check if client should bypass vip restrictions
if(client > 0 && client < MaxClients)
if(client >= 1 && client <= MaxClients)
{
// Client has bypass flag, dont return vip restrictions
if(CheckCommandAccess(client, "sm_nominate_ignore", ADMFLAG_CHEATS))