Color on ProxDetector.
#1

Hey guys. I made a simple /me command for my GM, all work good, but i don't know how to set it to rose/pink color...

pawn Код:
CMD:me(playerid, params[])
{
    new text[128];
    if(!sscanf(params, "s[128]", text))
    {
        new Name[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, Name, sizeof(Name));
        format(string, sizeof(string), "%s %s", Name, text);
        ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
        return 1;
    }
    else return SendClientMessage(playerid, COLOR_BROWN, "USAGE: /me [Text]");
}
Thanks in advance.
Reply
#2

pawn Код:
ProxDetector(10.0, playerid, string, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK);
Reply
#3

But of course, you will need to define pink.
pawn Код:
#define COLOR_PINK 0xFF80FFFF
Reply
#4

Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)