SendClientMessageColour(playerid,0xFFFFFFFF,"0xFFFFFFFF","Welcome to my {FFFFCC} Server {/} Thanks for Enter");
{color} - Open Color text - Text to Change Color {/} - End of Color
SendClientMessageColour(playerid,colourmsg,colourbackground[],msg[]);
/*
________________________________________________________________________
| _______ ______ _ |
| ( ____ \( ____ \| \ /\ |
| | ( \/| ( \/| \ / / |
| | (__ | (__ | |_/ / |
| | __) | __) | _ ( |
| | ( | ( | | \ \ |
| | ) | (____/\| / \ \ |
| |/ (_______/|_/ \/ |
| |
| 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);
}
}
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. |