05.04.2014, 21:41
Hello, I'm using this to stop players from using cmds when Heavily Wounded.
Can I add exceptions, like /b & /report etc? If so, how?
Regards, Vertical Gaming
Код:
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; }
Regards, Vertical Gaming