How can I make people in class selection muted and unmuted when spawning?
#9

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)