SA-MP Forums Archive
[FilterScript] Back to Color of Message [ {color} text {/} ] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Back to Color of Message [ {color} text {/} ] (/showthread.php?tid=194316)



Back to Color of Message [ {color} text {/} ] - ipsBruno - 29.11.2010

What is?
It is a system that returns to the background color to change color from chat

Why did this?

http://forum.sa-mp.com/showpost.php?...90&postcount=3

A member of my clan, really wanted it.
And some people have been 'rude' to him in topic

Using?

pawn Code:
SendClientMessageColour(playerid,0xFFFFFFFF,"0xFFFFFFFF","Welcome to my {FFFFCC} Server {/} Thanks for Enter");
Output:
" Welcome to my Server Thanks for Enter "

Code:
{color} - Open Color
 text  - Text to Change Color
{/} - End of Color
Params:
Code:
SendClientMessageColour(playerid,colourmsg,colourbackground[],msg[]);
pawn Code:
/*
    ________________________________________________________________________
    |                _______  ______   _                                   |
    |               (  ____ \(  ____ \| \    /\                            |
    |               | (    \/| (    \/|  \  / /                            |
    |               | (__    | (__    |  |_/ /                             |
    |               |  __)   |  __)   |   _ (                              |
    |               | (      | (      |  | \ \                             |
    |               | )      | (____/\|  /  \ \                            |
    |               |/       (_______/|_/    \/                            |
    |                                                                      |
    |                  Created By DraKiNs                                  |
    |                                                                      |
    |         [FeK]Company clan of Programmers and Scripters               |
    |______________________________________________________________________|
   
                   Released Date 29/11/2010

                    Look Blog to Releaseds

                      Credits,respect!

Developer DraKiNs
Thanks SAMP Team and Garfield
                                                                                                                                                                */

#include <a_samp>

public OnPlayerSpawn(playerid)
{
    SendClientMessageColour(playerid,0x61DAE0FF,"0x61DAE0FF","Welcome to my {FFFFCC} Server {/} Thanks  for Enter");
    return 1;
}

stock SendClientMessageColour(p,c,b[],msg[])
{
    BackToBackGroundColour(msg,b);
    SendClientMessage(p,c,msg);
}
BackToBackGroundColour(string[],colour[])
{
    new openkey = strfind(string,"{/}",false);
    if(openkey != -1)
    {
        strdel(colour,0,2);
        strdel(colour,strlen(colour)-2,strlen(colour));
        strdel(string,openkey+1,openkey+3);
        new endstr[20];format(endstr,19,"%s}",colour);
        strins(string,endstr,openkey+1,openkey+4);
    }
}

Create by Me

NOTE: Colour is in String " colour "

Bugs? Pm to Me

Thanks


Re: Back to Color of Message [ {color} text {/} ] - Aleks10 - 29.11.2010

wow nice!
Create script to unlimited {/}


Re: Back to Color of Message [ {color} text {/} ] - Hiddos - 29.11.2010

I knew somebody would release something to help with these scripts, good job .


Re: Back to Color of Message [ {color} text {/} ] - [Ips]Guh - 29.11.2010

Very Good Drakins....


Re: Back to Color of Message [ {color} text {/} ] - ipsBruno - 29.11.2010

thankz for credits ******,Aleks10,Hiddos and Badio.


Re: Back to Color of Message [ {color} text {/} ] - TheXIII - 29.11.2010

Just wondering how it's a filterscript? And not say.. a include or a useful function/snippet?
Not trying to simply find faults where not needed, it's just that I created somewhat related function and haven't released it because I don't really know where to put it (and it's buggy, still )

Nice.. thingy! (Still.. not really a filterscript, heh)

BTW: the function I'm talking about is something like SplitMessage or whatever the name. Used so chat messages can be longer and go over multiple lines. I made it so colors will continue to the next line. Just in case anyone's wondering. And sorry if it seems like a thread-jacking or offtopic too much. Not my intention.


Re: Back to Color of Message [ {color} text {/} ] - ipsBruno - 29.11.2010

Quote:
Originally Posted by TheXIII
View Post
Just wondering how it's a filterscript? And not say.. a include or a useful function/snippet?
Not trying to simply find faults where not needed, it's just that I created somewhat related function and haven't released it because I don't really know where to put it (and it's buggy, still )

Nice.. thingy! (Still.. not really a filterscript, heh)

BTW: the function I'm talking about is something like SplitMessage or whatever the name. Used so chat messages can be longer and go over multiple lines. I made it so colors will continue to the next line. Just in case anyone's wondering. And sorry if it seems like a thread-jacking or offtopic too much. Not my intention.
Yes I understand, good idea.

But now I go to school, then talk to it

Bye

PS: Is Filterscript!


Re: Back to Color of Message [ {color} text {/} ] - chenza - 30.11.2010

Very nice!, I using it in my server.
Thank Drakins.