11.05.2013, 18:40
You are missing the else statement. Right now you are basically sending the messages (error and their chat) if they ARE muted, while you should only be doing one of the two.
pawn Код:
public OnPlayerText(playerid, text[])
{
new
message[128];
if(PlayerInfo[playerid][Mute] == 1) return SendClientMessage(playerid, COL_RED, "[ERROR]: You are muted, you can't talk");
else
{
format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, message, -1);
}
return 1;
}