SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 29/11/2010, 01:41 AM   #1
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Back to Color of Message [ {color} text {/} ]

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
__________________
https://github.com/ipsBruno

Last edited by ipsBruno; 29/11/2010 at 01:20 PM.
ipsBruno is offline   Reply With Quote
Old 29/11/2010, 06:47 AM   #2
Aleks10
Huge Clucker
 
Join Date: Jul 2010
Posts: 203
Reputation: 0
Default Re: Back to Color of Message [ {color} text {/} ]

wow nice!
Create script to unlimited {/}
Aleks10 is offline   Reply With Quote
Old 29/11/2010, 07:40 AM   #3
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,304
Reputation: 2184
Default Re: Back to Color of Message [ {color} text {/} ]

I knew somebody would release something to help with these scripts, good job .
__________________
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 29/11/2010, 01:02 PM   #4
[Ips]Guh
Gangsta
 
[Ips]Guh's Avatar
 
Join Date: Apr 2010
Location: Brazil
Posts: 853
Reputation: 62
Default Re: Back to Color of Message [ {color} text {/} ]

Very Good Drakins....
[Ips]Guh is offline   Reply With Quote
Old 29/11/2010, 01:16 PM   #5
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Re: Back to Color of Message [ {color} text {/} ]

thankz for credits ******,Aleks10,Hiddos and Badio.
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 29/11/2010, 01:19 PM   #6
TheXIII
Big Clucker
 
TheXIII's Avatar
 
Join Date: Oct 2010
Location: Estonia
Posts: 190
Reputation: 7
Default Re: Back to Color of Message [ {color} text {/} ]

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.
__________________







TheXIII is offline   Reply With Quote
Old 29/11/2010, 01:22 PM   #7
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Re: Back to Color of Message [ {color} text {/} ]

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!
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 30/11/2010, 01:46 AM   #8
chenza
Little Clucker
 
Join Date: Apr 2008
Posts: 49
Reputation: 0
Default Re: Back to Color of Message [ {color} text {/} ]

Very nice!, I using it in my server.
Thank Drakins.
chenza is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] Color Inlcude (Most used color defines in one include!) (New Link) Oxside Includes 19 14/05/2014 05:42 PM
[?] Color of the connecting message? Gangste[R] Help Archive 5 17/09/2010 09:42 AM
[HELP] Text color (little help) WThieves Help Archive 3 09/01/2010 03:44 PM
Color Text IDS? DeltaAirlines12 Help Archive 5 23/08/2009 09:42 AM


All times are GMT. The time now is 11:12 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.