How can i make player not use commands while jailed ?
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Your Command", cmdtext, true, 10) == 0)
    {
        if(Mute[playerid] == 1)
        {
            return SendClientMessage(playerid, -1, "{FF0000}You're jailed, you're muted and you are not allowed to use commands.");
        }
        else if(Mute[playerid] == 0) return 1;
    }
    return 0;
}
Reply


Messages In This Thread
How can i make player not use commands while jailed ? - by Glossy42O - 09.02.2015, 15:28
Re: How can i make player not use commands while jailed ? - by HazardouS - 09.02.2015, 15:38
Re: How can i make player not use commands while jailed ? - by M4D - 09.02.2015, 15:39
Re: How can i make player not use commands while jailed ? - by Glossy42O - 09.02.2015, 19:49
Re: How can i make player not use commands while jailed ? - by Sascha - 09.02.2015, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)