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

Rage SubModule: ColorChat


Post New Thread Reply   
 
Thread Tools Display Modes
Rossonero
Senior Member
Join Date: Mar 2009
Location: Location
Old 04-28-2012 , 07:45   Re: Rage SubModule: ColorChat
Reply With Quote #11

i little help installing this?

got them to be displayed as working, but when trying to add them to a plugin to display some colors and stuff... kaboom, nothing worked... just got bad load on my plugin

i simply wanted to try to put in a message to people and try out the colors and see results, get the hang of it, try to understand it and adapt what ever other plugins might need adapting.

i tried info-rank and still get bad load

i did not try the fake native version, as it has certain issues from what i could understand from the posts

great job Connor as always, give us noobier guys a chance, by providing an install guide
__________________
signature
Rossonero is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 10:02   Re: Rage SubModule: ColorChat
Reply With Quote #12

Quote:
Originally Posted by Rossonero View Post
i little help installing this?

got them to be displayed as working, but when trying to add them to a plugin to display some colors and stuff... kaboom, nothing worked... just got bad load on my plugin

i simply wanted to try to put in a message to people and try out the colors and see results, get the hang of it, try to understand it and adapt what ever other plugins might need adapting.

i tried info-rank and still get bad load

i did not try the fake native version, as it has certain issues from what i could understand from the posts

great job Connor as always, give us noobier guys a chance, by providing an install guide
Its an include, bro.
Code:
 #include <colorchat>
put that at the top of your source, then incorporate the code into your source
Code:
client_print_color(id, DontChange, "[AMX] ^3%s ^1Has their very own set of slanderous remarks", sz_userName)
It'll compile into your program. No need to install it on your server.

That is assuming i understand what you're trying to do.....
Liverwiz is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 10:09   Re: Rage SubModule: ColorChat
Reply With Quote #13

Actually, I've got a question. Is there a way to say which team color you wish to have printed? i.e. when i'm using ^3 it seems to be a random team color (red, blue, or grey) is there a way to make it so the user's team is the color that is printed? Or to specify which of the team colors i want?
Liverwiz is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-30-2012 , 12:29   Re: Rage SubModule: ColorChat
Reply With Quote #14

Quote:
Originally Posted by Liverwiz View Post
Actually, I've got a question. Is there a way to say which team color you wish to have printed? i.e. when i'm using ^3 it seems to be a random team color (red, blue, or grey) is there a way to make it so the user's team is the color that is printed? Or to specify which of the team colors i want?
For the second parameter (color), if you use DontChange it will use whatever team you are currently on. You can specify which color you want for ^3 with: RED, BLUE, and GREY

Note that if you use NORMAL, GREEN, or TEAM_COLOR, it is the same as DontChange.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 12:48   Re: Rage SubModule: ColorChat
Reply With Quote #15

Quote:
Originally Posted by Emp` View Post
For the second parameter (color), if you use DontChange it will use whatever team you are currently on. You can specify which color you want for ^3 with: RED, BLUE, and GREY

Note that if you use NORMAL, GREEN, or TEAM_COLOR, it is the same as DontChange.
This isn't necesarily true. I use DontChange and it seems to be random. But i'll do more testing and see what happens when i deploy specified colors.
Liverwiz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-30-2012 , 13:49   Re: Rage SubModule: ColorChat
Reply With Quote #16

You are right, since i'm using a fake player index as message sender, it uses the last color received by receiver, so better to set each time a color.
Will think on how to fix it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-01-2012 , 02:33   Re: Rage SubModule: ColorChat
Reply With Quote #17

Quote:
Originally Posted by isotonic View Post
I use fake native and its include:
PHP Code:
#include <chatcolor>
...
get_user_name(idname31)
ColorChat(0DontChange"^4green ^3%s ^1test"name
I get grey player name:
green Player Name test

I'm forced to use such construction in order to get right color of player's team:
PHP Code:
...
new 
iColor get_user_team2(id)
client_print_color(0iColor"^4green ^3%s ^1test"name)
...
get_user_team2(id)
{
 new 
szTeam[2]
 
get_user_team(idszTeam1)
 switch( 
szTeam[0] )
 {
  case 
'U':return // Don't change
  
case 'T':return // Red
  
case 'C':return // Blue
  
case 'S':return // Grey
 
}
 return 
0



Quote:
Originally Posted by Liverwiz View Post
Actually, I've got a question. Is there a way to say which team color you wish to have printed? i.e. when i'm using ^3 it seems to be a random team color (red, blue, or grey) is there a way to make it so the user's team is the color that is printed? Or to specify which of the team colors i want?

Try this update :

- DontChange should be fixed and should show real receiver team color.
- Added native client_print_color2, instead of color, pass the player index you want to show the color from. (ak instead of get_user_team2(id), just use id). Also as suggested by MPNumB, it should apply with steam rules that doesn't show you a message from a muted/blocked player.

[EDIT] Messages should auto start with ^4 now so it isn't required to put a color char at the begining of messages [/EDIT]
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-23-2012 at 06:44.
ConnorMcLeod is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 05-11-2012 , 12:06   Re: Rage SubModule: ColorChat
Reply With Quote #18

RGB colorchat will be nice.
bazhenov93 is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 05-28-2012 , 19:45   Re: Rage SubModule: ColorChat
Reply With Quote #19

Got a question. Whats different in this one than the older one?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-29-2012 , 01:05   Re: Rage SubModule: ColorChat
Reply With Quote #20

May be you could read last post .
Or if you talk about the fake native, difference is speed for sure.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 04:08.


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