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

Sourcecomms++ edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-05-2019 , 16:41   Sourcecomms++ edit
Reply With Quote #1

Hello, anyone know how i can edit sourcecomms++ for give me back reply the message in red color, all messages witch are on sourcecomms.smx?? Thx a lot!
JeffTM1TAP is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-05-2019 , 17:14   Re: Sourcecomms++ edit
Reply With Quote #2

You can change the [SourceComms] prefix to red by changing
PHP Code:
#define PREFIX "\x04[SourceComms]\x01 " 
to
PHP Code:
#define PREFIX "\x02[SourceComms]\x01 " 
then recompile.
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-05-2019 , 17:15   Re: Sourcecomms++ edit
Reply With Quote #3

And all mesaage that will plugin reply is red?
JeffTM1TAP is offline
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-05-2019 , 17:18   Re: Sourcecomms++ edit
Reply With Quote #4

For example "Successfully unmuted" or another mesaage that plugin reply is all red?
JeffTM1TAP is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-05-2019 , 17:49   Re: Sourcecomms++ edit
Reply With Quote #5

Oh no that would only update the [SourceComms] prefix, what game is it for and Ill put the edited SP on here
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-06-2019 , 04:07   Re: Sourcecomms++ edit
Reply With Quote #6

How i can edit all mesaages, you can give me an exemple.
JeffTM1TAP is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-06-2019 , 12:12   Re: Sourcecomms++ edit
Reply With Quote #7

First off you will need to include the include of your choice for colors. I use multicolor so for example
PHP Code:
#include <multicolor> 
To edit the chat colors here is an example:

PHP Code:
PrintToChat(i"%s%t"PREFIX"Muted on connect"); 
change to
PHP Code:
CPrintToChat(i"%s{red}%t{default}"PREFIX"Muted on connect"); 
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-06-2019 , 13:56  
Reply With Quote #8

:/

didn't work..

Last edited by DarkDeviL; 01-07-2019 at 00:18. Reason: Merged bump / blanked out garbage
JeffTM1TAP is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-06-2019 , 15:19   Re: Sourcecomms++ edit
Reply With Quote #9

It should work, the code written by Mr.Freeman is fine. Maybe you're doing something wrong
__________________
NanoC is offline
Send a message via Skype™ to NanoC
JeffTM1TAP
Member
Join Date: Dec 2018
Old 01-06-2019 , 15:56  
Reply With Quote #10

PrintToChat(admin, "%s%t", PREFIX, "Successfully unmuted", targetName);
PrintToConsole(admin, "%s%t", PREFIX, "successfully unmuted", targetName);
}
else
{
PrintToServer("%s%T", PREFIX, "successfully unmuted", LANG_SERVER, targetName);


CPrintToChat(admin, "%s{red}%t{default}", PREFIX, "Successfully unmuted.", targetName);
PrintToConsole(admin, "%s%t", PREFIX, "Successfully unmuted.", targetName);
}
else
{
PrintToServer("%s%T", PREFIX, "Successfully unmuted.", LANG_SERVER, targetName);

these are my changes and so it should work, i come back tomorrow with an answer, thx guys, if so works, all messages will need to be modified by mr.freeman model, what do i do with "printtoserver??

..

Last edited by DarkDeviL; 01-07-2019 at 00:18. Reason: Merged two posts within 1 minute in to one post. Simply use the Edit Post button when you're the latest poster to add more information.
JeffTM1TAP 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 21:24.


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