[SNIPPET] Is SteamID banned
PHP Code:
Thanks to: https://forums.alliedmods.net/showthread.php?t=198804 https://forums.alliedmods.net/showthread.php?t=177900 https://forums.alliedmods.net/showthread.php?p=2127550 |
Re: [SNIPPET] Is SteamID banned
Lets just hope people wont use this on their 5000+ bans server.
Never really got the regex part, why not just use StrContains on the huge buffer? plus, you should do listid on mapstart or plugin start, and store the ban ids in a ADT array, or something like that, then hook: ├OnBanClient ├OnBanIdentity ├OnRemoveBan to add/remove from that array. |
Re: [SNIPPET] Is SteamID banned
Quote:
Think it will be better just hook server_addban and server_removeban, that should do the job. Was also thinking about ADT array. Maybe I get confused by what asherkin said.. About why not StrContains, think it could be useful is people want to print out banned ids.. Think I should just have published the parser.. Hmm.. Will rewrite it later today, I hope.. |
| All times are GMT -4. The time now is 18:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.