08.05.2013, 09:47
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:
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;
}