OnPlayerText problem
#5

You are missing the else statement. Right now you are basically sending the messages (error and their chat) if they ARE muted, while you should only be doing one of the two.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        message[128];
    if(PlayerInfo[playerid][Mute] == 1) return SendClientMessage(playerid, COL_RED, "[ERROR]: You are muted, you can't talk");
    else
    {
        format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
        ProxDetector(30.0, playerid, message, -1);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText problem - by Zex Tan - 11.05.2013, 18:04
Re: OnPlayerText problem - by ReVo_ - 11.05.2013, 18:06
Re: OnPlayerText problem - by Zex Tan - 11.05.2013, 18:12
Re: OnPlayerText problem - by ReVo_ - 11.05.2013, 18:30
Re: OnPlayerText problem - by zDevon - 11.05.2013, 18:40
Re: OnPlayerText problem - by Vince - 11.05.2013, 18:43
Re: OnPlayerText problem - by Zex Tan - 11.05.2013, 18:49
Re: OnPlayerText problem - by doreto - 11.05.2013, 18:56
Re: OnPlayerText problem - by Chenko - 11.05.2013, 18:56
Re: OnPlayerText problem - by Zex Tan - 11.05.2013, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)