Customizing colors in SendClientMessage
#3

Hello!

You can realize that like this:
PHP код:
stock function1(color1[],color2[])
{
    new 
string[144],s1[10],s2[10];
    if(!
strcmp(color1,"red",true))format(s1,sizeof(s1),"ef3f23");
    if(!
strcmp(color2,"green",true))format(s2,sizeof(s2),"476e15");
    
format(string,sizeof string,"{%s} Hello,{%s} this is a test message!",s1,s2);
    
SendClientMessageToAll(-1,string);
    return 
1;

So, you have the choice between red and green. Of yourse, you can insert more colours.
Reply


Messages In This Thread
Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 20:13
Re: Customizing colors in SendClientMessage - by DRIFT_HUNTER - 04.07.2016, 20:36
Re: Customizing colors in SendClientMessage - by Mencent - 04.07.2016, 20:41
Re: Customizing colors in SendClientMessage - by Stinged - 04.07.2016, 21:12
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 21:15
Re: Customizing colors in SendClientMessage - by Stinged - 04.07.2016, 21:33
Re: Customizing colors in SendClientMessage - by SickAttack - 04.07.2016, 21:34
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 23:25
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 23:27
Re: Customizing colors in SendClientMessage - by SickAttack - 05.07.2016, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)