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

Colored /rank,/me etc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
niiii
Member
Join Date: Sep 2013
Old 12-13-2013 , 15:20   Colored /rank,/me etc
Reply With Quote #1

Hi everyone, I'd like to ask a question about colored text after saying /rank,/me etc... What shoud I do to set that to green color for example? give me some easy way to do that, I tried to include colorchar in statsx.sma then compiled this file and then I set colors in ML files but that didn't work...

Last edited by niiii; 12-13-2013 at 15:32.
niiii is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 12-13-2013 , 15:42   Re: Colored /rank,/me etc
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <colorChat>

public plugin_init() 
{
    
register_plugin("Say""1.0""???");
    
register_clcmd("say /rank","show_color"); 
}

public 
show_color(id)
{
ColorChat(idGREEN"Your text here!");


Last edited by Gasa; 12-13-2013 at 15:42.
Gasa is offline
niiii
Member
Join Date: Sep 2013
Old 12-13-2013 , 15:46   Re: Colored /rank,/me etc
Reply With Quote #3

You dont understand me... I like to do colored the text after saying /rank... for example..
Your rank is.... and this will be colored and each word can be in different color

Last edited by niiii; 12-13-2013 at 15:46.
niiii is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 12-13-2013 , 15:52   Re: Colored /rank,/me etc
Reply With Quote #4

You have to modify the existing plugins and change the 'client_print()'-nativecalls with your edited message with colors: https://forums.alliedmods.net/showthread.php?p=851160
mottzi is offline
Send a message via MSN to mottzi
niiii
Member
Join Date: Sep 2013
Old 12-13-2013 , 15:56   Re: Colored /rank,/me etc
Reply With Quote #5

can you tell me more about it?
niiii is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 12-13-2013 , 17:04   Re: Colored /rank,/me etc
Reply With Quote #6

Well (when you are using amxx 1.8.3) you replace client_print() in the plugins with client_print_color(). Of course you will need to adapt the parameters and stuff.
mottzi is offline
Send a message via MSN to mottzi
niiii
Member
Join Date: Sep 2013
Old 12-14-2013 , 04:38   Re: Colored /rank,/me etc
Reply With Quote #7

Im using 1.8.2 version... what should i do?
niiii is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 12-14-2013 , 07:27   Re: Colored /rank,/me etc
Reply With Quote #8

Quote:
Originally Posted by niiii View Post
Im using 1.8.2 version... what should i do?
Use colorchat or upgrade to amxx 1.8.3 (dev)
__________________
simanovich is offline
niiii
Member
Join Date: Sep 2013
Old 12-14-2013 , 07:30   Re: Colored /rank,/me etc
Reply With Quote #9

my god, Im asking about it... how to use colorchat -_-
niiii is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-14-2013 , 08:55   Re: Colored /rank,/me etc
Reply With Quote #10

Read this
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 18:52.


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