[HELP]OnPlayerText
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(TextTest == 1)
    {
        return 1;
    }
    else
    {
        new string[512];
        format(string, sizeof(string), "%s [%i]: {FFFFFF}%s", GetName(playerid), playerid,text[0]);
        SendClientMessageToAll(GetPlayerColor(playerid),string);
    }
    return 0;
}
Hey , i want to make that, like the my color in chat come same what come in TAB, but its dont work :S With that code my color in chat is black :S How to fix it ?
Reply
#2

use setplayercolor before using getplayercolor, so possibly set everyones colour in the onplayerconnect callback
Reply
#3

I use this .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)