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
#2

you can add commands yes but my question is , what kind of commands you want , in other way, what you are trying to do with thoes commands u want to add ?
Reply
#3

go to an exemple for an command already disabled, and give post it here so ican help you , i understand what you want now.
Reply
#4

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)