OnPlayerText changing color
#5

Just replace this -1 with some other hexadecimal color code!
This is a sample of red!

Try this.. Is this what you were asking?

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsPlayerAdmin(playerid))
    {
        new pName[MAX_PLAYER_NAME], String[128];
        GetPlayerName(playerid, pName, 24);
        format(String, sizeof(String), "[Admin] %s: %s", pName, text);
        SendClientMessageToAll(0xFF0000FF,String); //-1 to replace with hexdecimal color code, here now its red.. try it
        return 0;
    }
    return 1;
}
Working?
Reply


Messages In This Thread
OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:35
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:37
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:40
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:43
Re: OnPlayerText changing color - by Guest4390857394857 - 19.05.2014, 07:48
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Threshold - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Stanford - 19.05.2014, 07:50
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)