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

Solved [ H3LP ] Hook SayText ChatToAll


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-16-2017 , 05:07   [ H3LP ] Hook SayText ChatToAll
Reply With Quote #1

Hi. What will be the easiest way to hook only the say chat for a non-CS game, excluding the say team chat? Like for example if I want to add something before the player name only if the message is sent to all players. Thanks !

Last edited by DarthMan; 08-16-2017 at 14:47. Reason: Solved
DarthMan is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 08-16-2017 , 13:02   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #2

Expand your request with more details.
__________________
Relaxing is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-16-2017 , 13:22   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
Expand your request with more details.
So, I want to check when the player sends a message, when hooking SayText, if it is sent to all players or just to the team that he's in.
DarthMan is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-16-2017 , 13:36   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #4

Quote:
Originally Posted by DarthMan View Post
So, I want to check when the player sends a message, when hooking SayText, if it is sent to all players or just to the team that he's in.
check other chat plugins and see how they are done, don`t reinvent the wheel
__________________
retired chump
DjSoftero is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-16-2017 , 13:54   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #5

Quote:
Originally Posted by DjSoftero View Post
check other chat plugins and see how they are done, don`t reinvent the wheel
Every single chat plug-in that I ahve found works only with CS, it uses CS chat values that are not valid for TFC or any other mods.
DarthMan is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-16-2017 , 14:41   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #6

ow, sorry my bad, haven`t noticed that part
__________________
retired chump
DjSoftero is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-16-2017 , 14:47   Re: [ H3LP ] Hook SayText ChatToAll
Reply With Quote #7

Quote:
Originally Posted by DjSoftero View Post
ow, sorry my bad, haven`t noticed that part
I fixed it using copy from a string.
DarthMan 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 00:40.


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