SA-MP Forums Archive
Color. - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Color. (/showthread.php?tid=325018)



Color. - Nicholas. - 11.03.2012

Hello.

I have been looking for the purple color that is normally used for role-play in most servers, (/me /do etc) color. It is a shaded purple color but I seem to can't find it.

Anyone could help me please?


Re: Color. - Mike_Peterson - 11.03.2012

Код:
#define COLOR_PURPLE 0xC2A2DAFF
there you go, a tip:
Next time, make a screenie (F, go to ur screens folder, open the picture with photoshop, use the color retriever tool or something like that, and get the RGB values. then download one of those many Sa-Mp color picker tools, put in the RGB values and there u go; a hex number.

Rep++ if I helped.


Re: Color. - mrskull42 - 11.03.2012

After you defined COLOR_PURPLE

Код:
 if(!strcmp(cmdtext, "/me", true, 3))
    {
        if(!cmdtext[3])return SendClientMessage(playerid, COLOR_PURPLE, "Use /me [somthing here]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        SendClientMessageToAll(COLOR_PURPLE, str);
        return 1;
    }



Re: Color. - Twisted_Insane - 11.03.2012

If it is purple, I'd rather try out this color here:

pawn Код:
#define COLOR_PURPLE 0x800080AA