AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to hook Say and Say_Team? (https://forums.alliedmods.net/showthread.php?t=208950)

Kz1.0 02-19-2013 11:00

How to hook Say and Say_Team?
 
Searched but not found :cry:. How to hook Say and Say_Team?

ConnorMcLeod 02-19-2013 11:16

Re: How to hook Say and Say_Team?
 
Depends what you want to do with it ?

Kz1.0 02-19-2013 11:59

Re: How to hook Say and Say_Team?
 
I want to sth like banning their chat ablility or adding tag before any lines based on team ([CT] Player1: abc, [T] Player2: def)
:D

RapZzw3rR 02-19-2013 13:15

Re: How to hook Say and Say_Team?
 
register_clcmd("say", "hook_say");
register_clcmd("say_team", "hook_sayteam");

ConnorMcLeod 02-19-2013 15:22

Re: How to hook Say and Say_Team?
 
Quote:

Originally Posted by Kz1.0 (Post 1897648)
I want to sth like banning their chat ablility or adding tag before any lines based on team ([CT] Player1: abc, [T] Player2: def)
:D

Then use register_message with message SayText, search the forum you gonna find examples.

Kz1.0 02-19-2013 17:35

Re: How to hook Say and Say_Team?
 
Quote:

Originally Posted by ConnorMcLeod (Post 1897799)
Then use register_message with message SayText, search the forum you gonna find examples.

Thank you! And can I do like RapZzw3rR above?

fysiks 02-19-2013 22:15

Re: How to hook Say and Say_Team?
 
Quote:

Originally Posted by Kz1.0 (Post 1897896)
Thank you! And can I do like RapZzw3rR above?

To block stuff, yes.


All times are GMT -4. The time now is 21:47.

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