29.11.2011, 15:24
I am not sure if this works. But I suggest you to add the muted at the Admin's enum.
It's easier to use it.
It's easier to use it.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Muted[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You are currently muted and cannot type in the chatbox.");
else {
new
string[128],
playername[MAX_PLAYER_NAME],
PlayerColor = GetPlayerColor(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s[%d]: {FFFFFF}%s", playername, playerid, text);
SendClientMessageToAll(PlayerColor, string);
}
return 0;
}