Disabling cmds, except a few ones.
#1

Hello, I'm using this to stop players from using cmds when Heavily Wounded.
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: Invalid command, please use the available commands in /help.");
    else if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
    else if(PlayerInfo[playerid][pInjuried] == 2) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: You cant do this when you're in heavily wounded modus.");
    return 1;
}
Can I add exceptions, like /b & /report etc? If so, how?

Regards, Vertical Gaming
Reply


Messages In This Thread
Disabling cmds, except a few ones. - by VerticalGaming - 05.04.2014, 21:41
Re : Disabling cmds, except a few ones. - by MCZOFT - 05.04.2014, 22:05
Re : Disabling cmds, except a few ones. - by MCZOFT - 05.04.2014, 22:08
Re: Disabling cmds, except a few ones. - by VerticalGaming - 05.04.2014, 22:21

Forum Jump:


Users browsing this thread: 1 Guest(s)