05.04.2012, 05:20
return 0 (zero) under OnPlayerText to stop there text reaching the chat.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(PlayerMuted[playerid] == true)
{
SendClientMessage(playerid, -1, "You must spawn before you chat");
// Stop there text reaching the chat
return 0;
}
// Allow them to chat when not muted
return 1;
}