Mute (OnPlayerText Problem)
#1

- Removed.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if (tInfo[playerid][Muted])
    {
        SendErrMsg(playerid, "You cannot chat while you are muted!");
        return 0;
    }
    tInfo[playerid][ChatLines]++;
    new name[MAX_PLAYER_NAME], ircMsg[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(ircMsg, sizeof(ircMsg), "02[%d] 07%s: %s", playerid, name, text);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
    format(text, 1024, "%s(%d): {FFFFFF}%s", name, playerid, text);
    SendClientMessageToAll(GetPlayerColor(playerid), text);
    return 0;
}
Do the mute check before anything else.
Reply
#3

- Removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)