AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Working Whitelist? (https://forums.alliedmods.net/showthread.php?t=339144)

Ark_Procession 08-18-2022 22:09

Working Whitelist?
 
https://forums.alliedmods.net/showthread.php?p=1830686
https://forums.alliedmods.net/showthread.php?p=715068

Both not working, apparently they are not blocking the access to the server, anyone can still join.

Checked every cvar, they are running on the sv just "fine"

Someone has a whitelist that works?

oqyh 08-19-2022 07:52

Re: Working Whitelist?
 
Quote:

Originally Posted by Ark_Procession (Post 2786829)
https://forums.alliedmods.net/showthread.php?p=1830686
https://forums.alliedmods.net/showthread.php?p=715068

Both not working, apparently they are not blocking the access to the server, anyone can still join.

Checked every cvar, they are running on the sv just "fine"

Someone has a whitelist that works?



https://github.com/Synchroneyes/simp...whitelister.sp

Bacardi 08-19-2022 08:41

Re: Working Whitelist?
 
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(0client"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.

Ark_Procession 08-19-2022 13:34

Re: Working Whitelist?
 
Quote:

Originally Posted by Bacardi (Post 2786864)
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(0client"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.


Bacardi, this is super helpful, works wonders.

The admins_simple file is enough for me. gets the job done very well.

Thank youuu


I was under the impression sourcemod was retrocompatible, but found tons of stuff that dont work that did in 1.9.

Ark_Procession 08-19-2022 13:35

Re: Working Whitelist?
 
Quote:

Originally Posted by oqyh (Post 2786860)

Thank you so much for your help.


All times are GMT -4. The time now is 21:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.