#pragma semicolon 1 #pragma newdecls required #include <sourcemod> #include <sdktools> public Plugin myinfo = { name = "KickWhenFull", author = "cra88y", version = "1.0" }; public void OnClientPostAdminCheck(int client) { if(GetClientCount(true) > GetMaxHumanPlayers()) { if (!IsPlayerAdmin(client)) { KickClient(client, "Server is full! Please try again later."); } } } stock bool IsPlayerAdmin(int client) { if (IsClientInGame(client) && CheckCommandAccess(client, "", ADMFLAG_KICK)) return true; return false; }