Simple plugin which whitelist players by access to admin override "sm_whitelist"
- You not need give any admin flags to person, just add person in admin list and into that admin group
- Admins with flag "A" have already access
- If you want change "sm_whitelist" admin flag, do it in admin_overrides.cfg
PHP Code:
public void OnClientPostAdminCheck(int client)
{
if(!IsFakeClient(client) &&
!IsClientInKickQueue(client) &&
!CheckCommandAccess(client, "sm_whitelist", ADMFLAG_RESERVATION))
{
KickClient(client, "[SM] You are not in whitelist");
LogAction(0, client, "Kicked %L for not be in whitelist", client);
}
}
/*
Example how you make admin group and add admin in group "whitelist"
...configs/admins.cfg
Admins
{
"BAILOPAN"
{
"auth" "steam"
"identity" "STEAM_0:1:16"
"flags" "abcdef"
}
"Newbie"
{
"auth" "steam"
"identity" "STEAM_0:1:18"
"group" "whitelist"
}
}
...configs/admin_groups.cfg
Groups
{
"Default"
{
"immunity" "1"
}
"Full Admins"
{
Overrides
{
}
"flags" "abcdefghiz"
"immunity" "99"
}
"whitelist"
{
Overrides
{
"sm_whitelist" "allow"
}
}
}
*/
...unless OP tell us, how he want whitelist people.
- By txt file ? -> Use SM admin system like plugin above.
- Steam groups ? Then need look that kind plugin.
__________________