IC chat color
#2

Maybe something like this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(pInfo[playerid][OnDuty] == 1) //change it to yours
    {
        new string[128];
        GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"((%s says: %s))",string,text[1]);
        SendClientMessageToAll(-1,string);
        return 0;
    }
    return 1;
}
And use:
pawn Код:
pInfo[playerid][OnDuty] = 1; //or what ever your using
on your OnDuty command.

Not tested but i think will work!
Reply


Messages In This Thread
IC chat color - by ZeroCools - 13.03.2013, 09:29
Re: IC chat color - by ]Rafaellos[ - 13.03.2013, 09:35
Re: IC chat color - by ZeroCools - 13.03.2013, 09:45
Re: IC chat color - by ]Rafaellos[ - 13.03.2013, 10:19
Re: IC chat color - by ZeroCools - 13.03.2013, 10:26
Re: IC chat color - by ]Rafaellos[ - 13.03.2013, 10:32
Re: IC chat color - by ZeroCools - 13.03.2013, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)