SA-MP Forums Archive
[HELP]OnPlayerText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]OnPlayerText (/showthread.php?tid=261486)



[HELP]OnPlayerText - Gertin - 13.06.2011

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 ?


Re: [HELP]OnPlayerText - Donya - 13.06.2011

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


Re: [HELP]OnPlayerText - Gertin - 14.06.2011

I use this .