Chat Name Color Help?
#4

Quote:
Originally Posted by Namer
Посмотреть сообщение
here you go
Hey, so I was wondering how to do the same thing but for (/b) chat.
So administrator name would be orange and then the text would be grey.
Normal players the whole line would be grey.

Here's the (/b) command:
pawn Код:
//Orange For Admin Name - F6970C
//if(Player[playerid][AdminLevel] >= 1)

command(b, playerid, params[])
{
    new Message[128], string[128];
    if(sscanf(params, "z", Message))
    {
        SendClientMessage(playerid, WHITE, "SYNTAX: /b [message]");
    }
    else
    {
        if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
        {
            return 1;
        }
        else
        {
            if(Player[playerid][PrisonID] == 1)
            {
                SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
            }
            else
            {
                format(string, sizeof(string), "%s: ((%s)) ", GetName(playerid), Message);
                NearByMessage(playerid, WHITE, string);
            }
        }
    }
    return 1;
}
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: 1 Guest(s)