Chat Name Color Help?
#1

Hey there, so I currently am using Vortex Roleplay V1 Gamemode and by default the /N(ewbie) chat is setup to have the one color along the whole line. However i want the name of the character to be a different color just in /N(ewbie) chat. Here's the default command:
pawn Код:
command(newbie, playerid, params[])
{
    new
        string[128];

    if(isnull(params))
    {
        SendClientMessage(playerid, WHITE, "SYNTAX: /n(ewbie) [message]");
    }
    else
    {
        if(NewbieEnabled == 1)
        {
            if(Player[playerid][CanUseNewbie] == 1 && Player[playerid][Authenticated] >= 1)
            {
                if(Player[playerid][nMuted] >= 1)
                {
                    SendClientMessage(playerid, WHITE, "You have been muted from this channel by an admin.");
                }
                else
                {
                    if(Player[playerid][AdminDuty] == 0)
                    {
                        if(Player[playerid][VipRank] >= 1)
                        {
                            format(string, sizeof(string), "[N] VIP %s: %s", GetName(playerid), params);
                            SendClientMessageToAll(NEWBIE_CHAT, string);
                            OOCChatLog(string);
                        }
                        else
                        {
                            if(Player[playerid][PlayingHours] < 1)
                            {
                                format(string, sizeof(string), "[N] %s %s: %s", OOCRanks[Rank1], GetName(playerid), params);
                                SendClientMessageToAll(NEWBIE_CHAT, string);
                                Player[playerid][CanUseNewbie] = 0;
                                SetTimerEx("RefreshNewbieChatForPlayer", 30000, false, "d", playerid);
                            }
                            else if(Player[playerid][PlayingHours] >= 1 && Player[playerid][PlayingHours] < 25)
                            {
                                format(string, sizeof(string), "N] %s %s: %s", OOCRanks[Rank2], GetName(playerid), params);
                                SendClientMessageToAll(NEWBIE_CHAT, string);
                                Player[playerid][CanUseNewbie] = 0;
                                SetTimerEx("RefreshNewbieChatForPlayer", 30000, false, "d", playerid);
                            }
                            else if(Player[playerid][PlayingHours] >= 25 && Player[playerid][PlayingHours] < 100)
                            {
                                format(string, sizeof(string), "[N] %s %s: %s", OOCRanks[Rank3], GetName(playerid), params);
                                SendClientMessageToAll(NEWBIE_CHAT, string);
                                Player[playerid][CanUseNewbie] = 0;
                                SetTimerEx("RefreshNewbieChatForPlayer", 30000, false, "d", playerid);
                            }
                            else if(Player[playerid][PlayingHours] >= 100 && Player[playerid][PlayingHours] < 300)
                            {
                                format(string, sizeof(string), "[N] %s %s: %s", OOCRanks[Rank4], GetName(playerid), params);
                                SendClientMessageToAll(NEWBIE_CHAT, string);
                                Player[playerid][CanUseNewbie] = 0;
                                SetTimerEx("RefreshNewbieChatForPlayer", 30000, false, "d", playerid);
                            }
                            else if(Player[playerid][PlayingHours] >= 300)
                            {
                                format(string, sizeof(string), "[N] %s %s: %s", OOCRanks[Rank5], GetName(playerid), params);
                                SendClientMessageToAll(NEWBIE_CHAT, string);
                                Player[playerid][CanUseNewbie] = 0;
                                SetTimerEx("RefreshNewbieChatForPlayer", 30000, false, "d", playerid);
                            }
                            OOCChatLog(string);
                        }
                    }
                    else
                    {
                        format(string, sizeof(string), "[N] Admin %s: %s", Player[playerid][AdminName], params);
                        SendClientMessageToAll(NEWBIE_CHAT, string);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, WHITE, "Please wait 30 seconds before submitting another message.");
            }
        }
        else
        {
            SendClientMessage(playerid, WHITE, "Newbie Chat is currently unavailable.");
        }
    }
    return 1;
}
The color I want to change the name to is: #00efad
If somebody is able to help me do that, it'd be greatly appreciated, as I'm a beginner at this stuff, thanks a bunch in advance!
Reply


Messages In This Thread
Chat Name Color Help? - by Kalkor - 14.12.2014, 15:07
Re: Chat Name Color Help? - by JeaSon - 14.12.2014, 15:18
Re: Chat Name Color Help? - by Kalkor - 14.12.2014, 22:07
Re: Chat Name Color Help? - by Kalkor - 14.12.2014, 22:35
Re: Chat Name Color Help? - by Write - 14.12.2014, 23:14
Re: Chat Name Color Help? - by Kalkor - 15.12.2014, 00:14
Re: Chat Name Color Help? - by JeaSon - 15.12.2014, 04:29
Re: Chat Name Color Help? - by Kalkor - 15.12.2014, 04:43
Re: Chat Name Color Help? - by JeaSon - 15.12.2014, 04:57
Re: Chat Name Color Help? - by JaydenJason - 15.12.2014, 05:58

Forum Jump:


Users browsing this thread: 3 Guest(s)