I have an idea is server reservations,it's like CS1.6 .
I want the lua if player = 30/32 players,that kick player who not admin but wants to join.
Is it possible?Please help
dontKickAdmins = { 1,2,3 } function tableContains(table, element) for _, value in pairs(table) do if (value == element) then return true end end return false end addhook("join", "kickOnJoin") function kickOnJoin(id) if (not tableContains(dontKickAdmins, id)) then if (#player(0, "table") > 30) then parse("kick "..id.." Slot Reservation") end end end