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

[ANY] Console Chat Filter [1.0.3] || Block spam from console chat


Post New Thread Reply   
 
Thread Tools Display Modes
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-14-2012 , 05:46   Re: [ANY] Console Chat Filter [1.0.2] || Block spam from console chat
Reply With Quote #11

Quote:
Originally Posted by Fearts View Post
testing now
Jasonbourne is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 01-14-2012 , 07:20   Re: [ANY] Console Chat Filter [1.0.2] || Block spam from console chat
Reply With Quote #12

It seems that basechat is processing sm_say before my plugin can block it

since sm_rcon sm_say hello is blocked

but when executed through the map is isnt

ill have a deeper look into this
Jasonbourne is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 02-02-2012 , 19:00   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #13

Should be fixed now

V1.0.3 released
Jasonbourne is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 02-02-2012 , 19:05   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #14

You commented out your HookEvent, that way you render the plugin useless.

Yours sincerely
Impact
__________________
Impact123 is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 02-02-2012 , 19:11   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #15

uploaded the wrong source

my bad

thanks for catching that
Jasonbourne is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 02-02-2012 , 19:17   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #16

Error when trying to compile.
__________________
Fearts is offline
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Old 02-02-2012 , 19:53   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #17

Should be fixed now

i chnaged command listener to an event but didnt do it properly
Jasonbourne is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 02-02-2012 , 20:17   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #18

Doesn't seem to work at all. All rcon say/rcon sm_say commands still work.
__________________
Fearts is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-05-2012 , 21:16   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #19

Not works.
Code:
#include <sourcemod>

public OnPluginStart() RegServerCmd("say", say)

public Action:say(args) return Plugin_Handled
WORKS! ^^
__________________
retired

Last edited by shavit; 07-05-2012 at 21:16.
shavit is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 07-06-2012 , 10:27   Re: [ANY] Console Chat Filter [1.0.3] || Block spam from console chat
Reply With Quote #20

Quote:
Originally Posted by shavit View Post
Not works.
Code:
#include <sourcemod>

public OnPluginStart() RegServerCmd("say", say)

public Action:say(args) return Plugin_Handled
WORKS! ^^
His method of hooking player_chat (with EventHookMode_Pre) should work. You've gotta remember that EventHookMode_Pre lets you make modifications to the event and its settings (that does include blocking it). But yes, your method would probably be easier. (You could also use AddCommandListener for all the commands such as say, sm_say, etc. and then check if the client is 0 and then block)
minimoney1 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 22:48.


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