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

[Dyn Native] ColorChat v0.3.2 (04 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-10-2009 , 21:52   Re: [Native] ColorChat v0.1.0
Reply With Quote #31

Well, the easiest solution is to replace all the !t with !!t, and the same pattern for the others.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
supergreg
Senior Member
Join Date: Jul 2007
Location: Oslo, Norway
Old 09-13-2009 , 10:12   Re: [Native] ColorChat v0.1.0
Reply With Quote #32

Thanks Exolent, I tried the following which as this screenshot shows did not stop the !t from being interpreted as a color shift trigger. Posting the code I use to print these lines. Any help appreciated.

PHP Code:
formatex(g_szMessageBIG_BUFF"%s is an admin, webnick: %s"colorPrintEscape(g_szNicks[id]), g_szWebNicks[id]);
 
adminMsg(g_szMessage);

colorPrintEscape(var[])
{
    new 
cleanVar[MED_BUFF 1];
    
copy(cleanVarMED_BUFF, var);
    
replace_all(cleanVarMED_BUFF"!t""!!t");
    
replace_all(cleanVarMED_BUFF"!g""!!g");
    
replace_all(cleanVarMED_BUFF"!n""!!n");
    return 
cleanVar;
}

adminMsg(message[])
{
    new 
players[32], numi;
    
get_players(playersnum);

    
format(messageBIG_BUFF"^1(^4ADMINS^1): %s"message);
    for(
0numi++)
    {
        new 
player players[i];
        if(!
is_user_bot(player) && access(playerADMIN_CHAT)) {
            
client_print_color(playerDontChangemessage);
        }
    }
    return 
true;

supergreg is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-13-2009 , 13:44   Re: [Native] ColorChat v0.1.0
Reply With Quote #33

Hmm. I guess I wasn't thinking clearly to catch that.
I guess you are going to have to modify the ColorChat function to fix this.

I suggest removing the !x syntax from the function, and then you can remember to use ^1, ^3, and ^4 yourself.
Here is the relationship:
!n = ^1
!t = ^3
!g = ^4
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
thegodfather420
New Member
Join Date: Oct 2009
Old 10-12-2009 , 22:40   Re: [Native] ColorChat v0.1.0
Reply With Quote #34

Hey Connor I am having trouble installing this plugin. I think this is a great plugin and would like to use it.

*Have put in plugins folder and scripting folder. and enabled it in plugins.ini. What else do I need to do. Thankyou, Steve
thegodfather420 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-13-2009 , 03:01   Re: [Native] ColorChat v0.1.0
Reply With Quote #35

This should be installed as a normal plugin.
Compile the sma, place the amxx file in plugins folder, after that add it in plugins.ini.
Also you need to put that include file (chatcolor.inc) in scripting/include folder.
After this you are prepared to make plugins using this extension.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
eltipo14
Junior Member
Join Date: Jul 2009
Old 10-18-2009 , 16:43   Greetings, ConnorMcLeod
Reply With Quote #36

Greetings, ConnorMcLeod. I wonder how I could do to put color messages that come in chat, as an example: if I have the plugin high_ping_kicker, chat messages in the default color come in yellow, if I want to leave the letters in colors or each word in a single color, as it could, that you do with all the plugins so you can differentiate them in chat to have the colors in a certain order, because they come without applying any color. This would facilitate a more pleasant view of chat, and for persons with visual problems would help them avoid straining the eyes. Thanks beforehand for any help.
eltipo14 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 16:45   Re: [Native] ColorChat v0.1.0
Reply With Quote #37

client_print(id, print_chat, ......)
Change into
client_print_color(id, Whatcoloryouwant, .....)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
eltipo14
Junior Member
Join Date: Jul 2009
Old 10-18-2009 , 17:26   Re: [Native] ColorChat v0.1.0
Reply With Quote #38

Quote:
Originally Posted by ot_207 View Post
client_print(id, print_chat, ......)
Change into
client_print_color(id, Whatcoloryouwant, .....)
Thank you for a prompt response, Where you say Whatcoloryouwant, ahy probe positioning, color letters: example: write, compile and gives me error, so I will put the code, so please explain to me how would I explain to a child.
Testing and told me, but I think I learned not to make, to compile gave me error.
piece of code :

public showWarn (param [])
client_print (param [0], print_chat," Players with ping above% D will be kicked!", get_cvar_num ("amx_hpk_ping"))
eltipo14 is offline
Old 10-18-2009, 17:51
eltipo14
This message has been deleted by eltipo14.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2009 , 17:54   Re: [Native] ColorChat v0.1.0
Reply With Quote #39

Please put your code between [ php ] tags or just remove it.

The answer is in first post :
Quote:
Colors for second arg are : DontChange (let original player team color), Red, Blue and Grey.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
eltipo14
Junior Member
Join Date: Jul 2009
Old 10-18-2009 , 18:41   Re: [Native] ColorChat v0.1.0
Reply With Quote #40

Thank ConnorMcLeod and apology step you file, you can have if I take a hand, just want to change its color, you could tell me you need to amend or include this code, to put color messages that will run in chat, so you'll know who to ask for more .
Attached Files
File Type: sma Get Plugin or Get Source (high_ping_kicker.sma - 786 views - 3.6 KB)
eltipo14 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 18:46.


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