Raised This Month: $32 Target: $400
 8% 

Altering in-game chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-13-2017 , 11:16   Altering in-game chat
Reply With Quote #1

I'm trying to change player's chat colors in-game and the method I've used in the past prevents me from using the gag command.

PHP Code:
RegConsoleCmd("say"say);
RegConsoleCmd("say_team"say); 
PHP Code:
public Action:say(clientargs)
{
    new 
String:argx[128];
    
GetCmdArgString(argxsizeof(argx));
    
StripQuotes(argx);
    
TrimString(argx);
    new 
String:ppLeft[128];
    
PrintToChatAll((GetUserAdmin(client) != INVALID_ADMIN_ID) ? "\x07C4D621[\x0717CAE2Admin\x07C4D621] \x07C4D621%N: \x0717CAE2%s" "\x07FFCC00%N \x07FFFFFF%s"clientargx); 
How could I go about doing it, avoiding the issue with the gag command?

Last edited by Halt; 09-13-2017 at 11:17.
Halt is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 09-13-2017 , 12:15   Re: Altering in-game chat
Reply With Quote #2

PHP Code:
#include <basecomm> 
...
PHP Code:
BaseComm_IsClientGagged(client
__________________


Max-Play.pl - the best polish servers
CamerDisco is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-13-2017 , 12:36   Re: Altering in-game chat
Reply With Quote #3

Use OnClientSayCommand
__________________
WildCard65 is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-13-2017 , 13:26   Re: Altering in-game chat
Reply With Quote #4

Edit-------

Looking through basetrigger.sp

Last edited by Halt; 09-13-2017 at 13:47.
Halt 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 10:58.


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