SA-MP Forums Archive
/mute help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /mute help (/showthread.php?tid=409160)



/mute help - Sellize - 20.01.2013

Hey how can i make it so that if his "isMuted" is bigger than 0 it will disable him from sending stuff?
what i got so far:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if Info[playerid][isMuted] > 0
    return 1;
}



Re: /mute help - [XST]O_x - 20.01.2013

pawn Код:
public OnPlayerText(playerid, text[])
{
    if (Info[playerid][isMuted] > 0) {
        SendClientMessage(playerid, -1, "ERROR: An admin has muted you and you cannot chat.");
        return 0;
    }
    return 1;
}



Re: /mute help - DaRk_RaiN - 20.01.2013

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(Info[playerid][isMuted] > 0)return SendClientMessage(playerid, -1, "You are muted you can't chat.");
    return 1;
}