Whaaaat? What is your test environment?
PHP Code:
public Action CmdMapLock(int client, int args)
{
PrintToChatAll("MaxClients (before) = %i", MaxClients);
LockSlots();
g_bSlotsLockedForce = true;
CPrintToChat(client, "%t", "slots_lock");
PrintToChatAll("MaxClients (after) = %i", MaxClients);
return Plugin_Handled;
}
public Action CmdMapUnlock(int client, int args)
{
PrintToChatAll("MaxClients (before) = %i", MaxClients);
UnlockSlots();
g_bSlotsLockedForce = false;
CPrintToChat(client, "%t", "slots_unlock");
PrintToChatAll("MaxClients (after) = %i", MaxClients);
return Plugin_Handled;
}