12.01.2015, 16:20
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
if(PlayerInfo[playerid][Muted] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You are muted, you are not allowed to talk!");
return 0;
}
else
{
format(string,sizeof(string),"{%06x}%s (%d): {FFFFFF}%s",GetPlayerColor(playerid), PlayerName(playerid), playerid, text);
SendClientMessageToAll(-1, string);
return 0;
}