Raised This Month: $51 Target: $400
 12% 

Working Whitelist?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-18-2022 , 22:09   Working Whitelist?
Reply With Quote #1

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?
Ark_Procession is offline
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 08-19-2022 , 07:52   Re: Working Whitelist?
Reply With Quote #2

Quote:
Originally Posted by Ark_Procession View Post
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
__________________
.:[ >> My Plugins << ]:.

My discord : oqyh
oqyh is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-19-2022 , 08:41   Re: Working Whitelist?
Reply With Quote #3

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.
__________________
Do not Private Message @me
Bacardi is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-19-2022 , 13:34   Re: Working Whitelist?
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
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 is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-19-2022 , 13:35   Re: Working Whitelist?
Reply With Quote #5

Thank you so much for your help.
Ark_Procession is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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