Player dosent get muted
#1

Hello when i mute a player it says that he cant talk but he can still type it and you can see it in chat how do i fix it?

here is my code
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(Muted[playerid]==1)
    {
        SendClientMessage(playerid,0xFF0000FF,"An Admin has Muted you,you are unable to Talk Now!");
        return 1;
    }
    return 1;
}
Reply
#2

you're returning 1, so the message will still be displayed to everyone, returning 0 will not send the message to others
Reply
#3

try

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(Muted[playerid]==1)
    {
        SendClientMessage(playerid,0xFF0000FF,"An Admin has Muted you,you are unable to Talk Now!");
        return 0;
    }
    return 1;
}
Reply
#4

Thank you for your help both +reped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)