Raised This Month: $12 Target: $400
 3% 

[ANY] Ban Player's Spray


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 02-04-2013 , 23:18   Re: [ANY] Ban Player's Spray
Reply With Quote #31

This is by design... would you like an option to allow/disallow sprays in the event the client cannot be authenticated?
__________________
View my Plugins | Donate
TnTSCS is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 02-05-2013 , 01:12   Re: [ANY] Ban Player's Spray
Reply With Quote #32

Yeah. It banned every spray. I would rather just allow them in this case.
__________________

DontWannaName is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 02-05-2013 , 18:54   Re: [ANY] Ban Player's Spray
Reply With Quote #33

I'll try to work on that modification tonight... I'll put a CVar so you can choose the default value.
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 02-06-2013 , 23:53   Re: [ANY] Ban Player's Spray
Reply With Quote #34

Here's a version hard coded to allow player sprays if player cannot be authenticated... I'll work on a more complete solution when I get more time

The temp fix was this, starting on line 493
PHP Code:
        if (!PlayerCachedCookie[client])
        {
            
//CPrintToChat(client, "{green}[{red}Banned Sprays{green}] Permissions are being checked, until verified you cannot use sprays.  Try again in a few seconds."); // LINE 493
            //return Plugin_Handled; // LINE 494
            
return Plugin_Continue// Added line 495
        

Attached Files
File Type: sp Get Plugin or Get Source (ban_player_sprays.sp - 133 views - 11.4 KB)
File Type: smx ban_player_sprays.smx (12.3 KB, 141 views)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 02-06-2013 at 23:54.
TnTSCS is offline
Atreus
SourceMod Donor
Join Date: Apr 2005
Location: San Diego, CA
Old 05-18-2013 , 08:06   Re: [ANY] Ban Player's Spray
Reply With Quote #35

I'm looking to install this, and currently plan to use the hardcoded version posted in the latest post before this one. That said, it would be lovely to see the first post updated with the changes you mentioned back in February. Do you still plan to do so?

Either way, thanks for making this

ps. Is there any way for this to /remove/ (or replace/spray over) the selected player's spray, should they have already sprayed it somewhere before you disable their ability to do so? That would be really helpful, so I wouldn't have to tell the player(s) reporting the situation to 'just spray over it for now', you know?
Atreus is offline
Send a message via AIM to Atreus Send a message via MSN to Atreus
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-27-2013 , 02:14   Re: [ANY] Ban Player's Spray
Reply With Quote #36

I'll post an update tomorrow. I'll implement a way to remove the spray with a cvar option. hopefully
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-27-2013 , 16:07   Re: [ANY] Ban Player's Spray
Reply With Quote #37

Coded - I'll test tonight when I get home.
__________________
View my Plugins | Donate
TnTSCS is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 06-05-2013 , 06:45   Re: [ANY] Ban Player's Spray
Reply With Quote #38

Hi TnTSCS,

Any possible of adding offline commands for ban and unban?

Thanks
nomy is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 06-07-2013 , 23:34   Re: [ANY] Ban Player's Spray
Reply With Quote #39

Quote:
Originally Posted by nomy View Post
Hi TnTSCS,

Any possible of adding offline commands for ban and unban?

Thanks
Where you can provide the SteamID? I suppose I can add that option to the command Just be very certain with the SteamID when using it.

Quote:
Originally Posted by Atreus View Post
Is there any way for this to /remove/ (or replace/spray over) the selected player's spray, should they have already sprayed it somewhere before you disable their ability to do so? That would be really helpful, so I wouldn't have to tell the player(s) reporting the situation to 'just spray over it for now', you know?
I'm retesting this now - ran into issues the other day with my current implementation.

...:: TnT Edit ::...
Too tired to finish... basically I have the option to remove the spray (well, relocate it) with an option for you to change the relocation vector to whatever you want - default to 0.0 0.0 0.0 but some maps actually use that spot, so you can use map configs to set the CVar to whatever you want.
__________________
View my Plugins | Donate

Last edited by TnTSCS; 06-08-2013 at 02:30.
TnTSCS is offline
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 06-09-2013 , 16:05   Re: [ANY] Ban Player's Spray
Reply With Quote #40

Which version to use? and does it work with l4d2? as l4d2 isn't in the same category as tf2,dod, and css
__________________
RavenDan29 is offline
Reply


Thread Tools
Display Modes

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 10:13.


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