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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Contrenature
Member
Join Date: Nov 2008
Location: Latvia, Liepaya, Riga
Old 06-18-2009 , 10:59   Re: Native : ColorChat
Reply With Quote #11

ConnorMcLeod, i need example, have some info plugins about shopping!
What i doo, i put in sma include chatcolor line.. like amxmodx, engine, fakemeta and other, yea.
Then, i have that code, some line:

client_print_color(id,print_chat, "[AMXX] ^3SMS Code - ^4Bla Bla Bla %s Server - to number blablabla, 1 SMS",name)

Need use "^3" or simple ^3 before text.
Correct me please, if i have mistakes..
Contrenature is offline
Send a message via Skype™ to Contrenature
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-18-2009 , 11:08   Re: Native : ColorChat
Reply With Quote #12

2nd arg is the color that will show when you use ^3 or !t, not the print location as you can only display it in chat.

Code:
client_print_color(id, DontChange, "[AMXX] ^3SMS Code - ^4Bla Bla Bla %s Server - to number blablabla, 1 SMS", name)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Contrenature
Member
Join Date: Nov 2008
Location: Latvia, Liepaya, Riga
Old 06-18-2009 , 12:32   Re: Native : ColorChat
Reply With Quote #13

Thank you werry mutch its work
I love you!
Contrenature is offline
Send a message via Skype™ to Contrenature
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-18-2009 , 15:17   Re: Native : ColorChat
Reply With Quote #14

Example on how to use it with default adminchat retailed.

Don't use the Get Plugin link
This plugin is just an example, the web compiler won't give you a working plugin, compile it locally if you want to use it.


+ Added to default adminchat, for admins, say #c text, where c can be r, b, g for the 3 teamx colors.
Attached Files
File Type: sma Get Plugin or Get Source (adminchat.sma - 3389 views - 12.4 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-07-2013 at 13:35.
ConnorMcLeod is offline
Eugene.
Junior Member
Join Date: May 2009
Location: 55.7522 / 37.6156
Old 06-21-2009 , 05:41   Re: [Native] ColorChat
Reply With Quote #15

thanks, good job man.
__________________
English i know badly!
Eugene. is offline
Send a message via ICQ to Eugene.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-23-2009 , 01:54   Re: [Native] ColorChat
Reply With Quote #16

Updated.

Added comments through code, hope color change when id=0 is fixed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-23-2009 , 04:22   Re: [Native] ColorChat
Reply With Quote #17

I would make like this
PHP Code:
public client_putinserver(id)
{
    if( !
is_user_botid ) && !is_user_hltvid ) )
        
g_bConnected[id] = true;

So we dont need 2nd bool for bots

PHP Code:
    if( bColorChange )
    {
        
// if no color passed, set 1st color to green
        
szMessage[0] = 0x03
    
}
    else
    {
        
// if color specified, set 1st color to team color
        
szMessage[0] = 0x04
    

Wrong comments change places
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-23-2009 , 10:38   Re: [Native] ColorChat
Reply With Quote #18

1. No, so bots are still usable as reference for team change color.
2. yes

-edit-
v0.1.0
Now fixed colorchange when id=0 and ML was used.
Reason was i was altering TeamInfo once by MSG_BROADCAST, then send multiple MSG_ONE_UNRELIABLE. In fact, that way doesn't work for "some" reasons, now send as many TeamInfo msgs as SayText msgs num.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-23-2009 at 12:51.
ConnorMcLeod is offline
Asplii
Member
Join Date: Mar 2009
Location: Namsos, Norway
Old 06-23-2009 , 14:46   Re: [Native] ColorChat v0.1.0
Reply With Quote #19

Can you add only Grey, Red and Blue colors, it have been nice if you do that
Asplii is offline
Send a message via MSN to Asplii
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-23-2009 , 15:38   Re: [Native] ColorChat v0.1.0
Reply With Quote #20

Quote:
Originally Posted by Asplii View Post
Can you add only Grey, Red and Blue colors, it have been nice if you do that
I don't understand, all you can do with colorchat can be done with this plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 20:31.


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