How to add color to Words like words in /commands
#1

I dont know how to add color to this

Code:
if (strcmp("/commands", cmdtext, true, 10) == 0) // Shows the Commands List
	{
		SendClientMessage(playerid,0xAA3333AA,"Server Commands");
    SendClientMessage(playerid,0xAA3333AA,"/help /kill /rules");
		SendClientMessage(playerid,0xAA3333AA,"/help More Commands Soon!!");
		return 1;
Reply
#2

Uhm?
Reply
#3

Here just include my INC and just type in the
pawn Code:
SendClientMessage(playerid, Red, "message");
http://solidfiles.com/d/0cb/
download, that and just put this on top of the script

pawn Code:
#include <colors>
and you don't have to worry about the colors
but, if your unsatisfied, with the color of the "colors"
just add your own color in the include.
Reply
#4

I dont get what ur saying
Reply
#5

Badandy, what do you mean?

Something like that?

/help /kill /rules

If yes, i don't think that is possible in chat. (I think, i'm not sure).
Reply
#6

Quote:
Originally Posted by Badandy
I dont get what ur saying
Download my include, and put it in the pawno/includes folder
then on the top of your script put :
pawn Code:
#include <colors>
Then your good to go. The main colors are Red, Blue, White, Yellow, Green, Black, etc.

Note : It's already defined in the include so don't worry
: If your not satisfied with the colors of the colors just add your color to the include

pawn Code:
#define [COLOR] [HEX CODE OF COLOR LIKE - 0xFF0000FF] // which means it is color red
Reply
#7

Code:
if (strcmp("/commands", cmdtext, true, 10) == 0) // Shows the Commands List
	{
		SendClientMessage(playerid,0xAA3333AA,"Server Commands");
    SendClientMessage(playerid,0xAA3333AA,"/help /kill /rules");
		SendClientMessage(playerid,0xAA3333AA,"/help More Commands Soon!!");
		return 1;
How do i add color to the text that comes when u do /commands?
Reply
#8

Include my color include and change the
pawn Code:
0xAA3333AA
To the color of your choice, Red, Blue, whatever.
Reply
#9

Can you show me how with the whole script that i gave?
Reply
#10

On top of script :
pawn Code:
#include <colors>
The command (your script) :
pawn Code:
if (strcmp("/commands", cmdtext, true, 10) == 0) // Shows the Commands List
    {
        SendClientMessage(playerid,Red,"Server Commands");
         SendClientMessage(playerid,Blue,"/help /kill /rules");
        SendClientMessage(playerid,Blue,"/help More Commands Soon!!");
        return 1;
     }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)