Problem With Color Chat Text
#7

The first part checks if player's admin level is 1 or higher. The second check if player's admin level is 0 or higher.
If a player is admin, both checks will return true, so it will be display twice.

Change your code to this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new str[200];
    if(pInfo[playerid][Admin] >= 1)
    {
         format(str, sizeof(str), "{A5CDCE}%s",text[0]);
         SendPlayerMessageToAll(playerid, str);
    }
    else
    {
        format(str, sizeof(str), "{FFFFFF}%s",text[0]);
        SendPlayerMessageToAll(playerid, str);
    }
   
    return 0;
}
Reply


Messages In This Thread
Problem With Color Chat Text - by BlazingKnife - 08.05.2013, 09:04
Re: Problem With Color Chat Text - by JaKe Elite - 08.05.2013, 09:11
Re: Problem With Color Chat Text - by BlazingKnife - 08.05.2013, 09:13
Re: Problem With Color Chat Text - by BlazingKnife - 08.05.2013, 09:36
Re: Problem With Color Chat Text - by IllidanS4 - 08.05.2013, 09:39
Re: Problem With Color Chat Text - by BlazingKnife - 08.05.2013, 09:43
Re: Problem With Color Chat Text - by Pooh7 - 08.05.2013, 09:47
Re: Problem With Color Chat Text - by BlazingKnife - 08.05.2013, 09:49
Re: Problem With Color Chat Text - by Guest4390857394857 - 21.02.2014, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)