View Single Post
Author Message
StevoTVR
Senior Member
Join Date: Oct 2008
Old 11-17-2008 , 16:06   Server Whitelist
Reply With Quote #1

Server Whitelist

This plugin gives you a simple way to limit access to the server to a list of SteamIDs in a text file. It's an alternative to using a password that can be leaked. The intent is to make this task easier without having to use reserved slots.

Check out RedSword's Server Whitelist Advanced for an alternative with more more features.

Console Commands
  • sm_whitelist_reload - Reloads server whitelist
  • sm_whitelist_list - List all SteamIDs in whitelist
  • sm_whitelist_add <steamid> - Adds a SteamID to the whitelist
Console Variables
Code:
// Enable server whitelist
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_whitelist_enable "1"

// Automatically grant admins access
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_whitelist_immunity "1"
Installation
  1. Copy whitelist.smx to sourcemod/plugins
  2. Copy whitelist.txt to sourcemod/configs
  3. List SteamIDs in whitelist.txt, one per line (or use the add command)
Changelog
  • 1.0 - 11/17/2008
    • Initial release
  • 1.1 - 8/8/2010
    • Added check for fake clients
Attached Files
File Type: sp Get Plugin or Get Source (whitelist.sp - 5805 views - 4.0 KB)
File Type: txt whitelist.txt (60 Bytes, 3701 views)

Last edited by StevoTVR; 11-02-2012 at 00:42.
StevoTVR is offline