Raised This Month: $ Target: $400
 0% 

[Example] Restricting SteamIDs by File


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BAILOPAN
Join Date: Jan 2004
Old 03-18-2007 , 22:04   [Example] Restricting SteamIDs by File
Reply With Quote #1

www.cssnation.net approached me today asking how they could restrict access to their server based on a file of SteamIDs. There are many ways to do it, but the best way is to use the admin system.

The admin system allows you to create your own lookup tables and custom admin systems. This script uses that feature to read admins from a file and add them into a custom admin pool. If a steamid is not in this pool, the client is rejected from the server.

The file it reads from is sourcemod/configs/allowed_steamids.txt
Attached Files
File Type: sp Get Plugin or Get Source (steamid_restrict.sp - 997 views - 2.1 KB)
__________________
egg

Last edited by BAILOPAN; 05-21-2008 at 13:43.
BAILOPAN is offline
 



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 18:48.


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