[ANY] City Bans
[ANY] City Bans v1.1.0 Description: Allows admins to ban users by their city. Commands:
Cvars:
Overrides: Admins with access to the "BypassCityBan" override (defaults to root) won't be blocked when they join from banned cities. Database: City Bans requires a database to store bans in. It will first look for a "citybans" configuration in databases.cfg, then for a "default" configuration. Here's a citybans configuration that uses a local SQLite database (no database server required): Code:
"citybans" Requirements: Requires the GeoIPCity extension, and optionally SteamTools for TF2 F2P blocking. Installation: Install GeoIPCity if you don't have it already (and optionally SteamTools), put citybans.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load citybans" into your console or rcon. Auto Update: Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater. Changelog:
Download Plugin (citybans.smx) View Source (citybans.sp) Requires updater.inc, mckayupdater.sp, geoipcity.inc, and steamtools.inc to compile. |
Re: [ANY] City Bans
Very interesting
Many thanks Dr. McKay |
Re: [ANY] City Bans
Kinda awesome actually. Though my. Geo ip shows the city 5 towns over
|
Re: [ANY] City Bans
Quote:
|
Re: Re: [ANY] City Bans
Quote:
Although not sure where they get the city ids from |
Re: [ANY] City Bans
CS:S
<Failed> "[ANY] City Bans" (1.0.0) by Dr. McKay an error in logs as smx will not load L 06/12/2013 - 07:52:55: [SM] Unable to load plugin "citybans.smx": Native "Steam_GetNumClientSubscriptions" was not found |
Re: [ANY] City Bans
Quote:
I've committed v1.0.1, which should fix this. |
Re: [ANY] City Bans
Thank you Dr. McKay .
I will test when I return home from work... Update: Running fine now. "[ANY] City Bans" (1.0.1) by Dr. McKay |
Re: [ANY] City Bans
Wow this is perfect. Thank you.
|
Re: [ANY] City Bans
argc should be < 1 instead of != 1 as people tend to use spaces with targets. You store and set the CmdReplySource, but you never set the value back to what it was after you print your message. You should consider using GetClientSerial instead of GetClientUserID to prevent potential duplicate checks on the same client. You should also consider checking the returns from a few GetClient* Functions (GetClientIP).
None of this seems lethal, though. |
All times are GMT -4. The time now is 15:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.