Raised This Month: $ Target: $400
 0% 

[ANY] Ban Player's Spray


Post New Thread Reply   
 
Thread Tools Display Modes
Industrial
Junior Member
Join Date: Jun 2010
Old 07-10-2013 , 21:01   Re: [ANY] Ban Player's Spray
Reply With Quote #61

can you ban sprays using steamids with this yet? occasionally i have people being cute and coming in with essentially the same name and it won't recognize it when i type or copy + paste their name.
Industrial is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-11-2013 , 21:40   Re: [ANY] Ban Player's Spray
Reply With Quote #62

This plugin uses the clientprefs, which I figured used steamId to store the preference...

I'm working on an offline way to add a SteamID so the next time that player joins the server, their sprays will be banned.

...:: TnT Edit ::...

Re-read your post and now I understand what you're requesting... I haven't tried it, but I thought you could target a player by UserId as well as name (or partial name)...
__________________
View my Plugins | Donate

Last edited by TnTSCS; 07-11-2013 at 21:42.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-11-2013 , 18:40   Re: [ANY] Ban Player's Spray
Reply With Quote #63

I'll work on this tomorrow and provide a way to add steamID bans when players are offline
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-30-2013 , 18:11   Re: [ANY] Ban Player's Spray
Reply With Quote #64

Here's a new version that has the ability to add bans by SteamID. Needs the translation file too.

Feel free to test it out a bit and let me know of any bugs you find. I'm going to try and test this weekend and update the OP with this version.

Commands


cvars
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-24-2013 at 16:53.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-24-2013 , 16:53   Re: [ANY] Ban Player's Spray
Reply With Quote #65

Plugin Updated

PHP Code:
/*
*         0.0.3.0    +    Added CVar to allow or restrict sprays before client(s) authorized
*                     +    Added ability to remove any sprays a player sprayed if they're banned.

*         0.0.3.1    +    Added option to turn on spray tracing so when aiming at spray it will display who sprayed it
*                     including their name, steamID, and time sprayed.  All controlled with CVars.

*         0.0.3.2    +    Added command "sm_removespray" to remove spray without banning sprays.  Either aim at a spray
*                     and use the command or provide a player's name and the spray will be removed.

*         0.0.3.3    *    Changed command from sm_removespray to sm_deletespray

*         0.0.3.4    +    Added command to perform offline spray bans with SteamID sm_banspray_steamid
*                     *    Switched from colors.inc to morecolors.inc
*                     +    Added lateload function
*                     +    Added translation file for phrases
*                     +    Added REGEX to validate SteamID
*         
*         0.0.3.5    +    Added Updater functionality
*                     +    Added AutoExecConfig include

*         0.0.3.6    +    Added LogAction stuff
*/ 
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-24-2013 at 16:54.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-23-2013 , 19:19   Re: [ANY] Ban Player's Spray
Reply With Quote #66

Plugin updated

New in 0.0.3.7, basic spray on spray protection with cvar sm_banedsprays_protection

Credit goes to MasterOfTheXP (https://forums.alliedmods.net/showpo...64&postcount=4)
__________________
View my Plugins | Donate
TnTSCS is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 12-16-2014 , 21:47   Re: [ANY] Ban Player's Spray
Reply With Quote #67

Ignore this. Wrong thread.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 12-16-2014 at 22:15.
jpwanabe is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-20-2015 , 10:44   Re: [ANY] Ban Player's Spray
Reply With Quote #68

"The version of 'Sniper Restrict'" might want to fix that other than that looks good!
Dr!fter is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-21-2015 , 11:15   Re: [ANY] Ban Player's Spray
Reply With Quote #69

bah - copy/paste failure... fixed, thank you
__________________
View my Plugins | Donate
TnTSCS is offline
enermax
Member
Join Date: May 2015
Old 05-19-2015 , 16:31   Re: [ANY] Ban Player's Spray
Reply With Quote #70

nice job
__________________
enermax 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 04:46.


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