[FilterScript] Back to Color of Message [ {color} text {/} ]
#1

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
Reply
#2

wow nice!
Create script to unlimited {/}
Reply
#3

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

Very Good Drakins....
Reply
#5

thankz for credits ******,Aleks10,Hiddos and Badio.
Reply
#6

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.
Reply
#7

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!
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)