OnPlayerText & Colour Problems
#2

pawn Код:
CheckTAG(playerid)
{
    new Nick[MAX_PLAYER_NAME + 1],string[55];
    GetPlayerName(playerid,Nick,sizeof(Nick));
    if(!strcmp(Nick,"[GC]",true,4))
    {
        string = "{FF0000}[G{FFFF00}C]{33CCFF}";
        strcat(string, Nick[4]);
        return string;
    }
    strcat(string,Name);
    return string;
}
and

pawn Код:
format(string,sizeof(string),"%s@: %s",CheckTAG(playerid),text[1]);
Reply


Messages In This Thread
OnPlayerText & Colour Problems - by Toxik - 13.08.2015, 18:05
Re: OnPlayerText & Colour Problems - by Jefff - 13.08.2015, 20:13
Re: OnPlayerText & Colour Problems - by Toxik - 13.08.2015, 23:12

Forum Jump:


Users browsing this thread: 2 Guest(s)