We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to create flags based on admin level, but it's not working!
I wanted to prevent admins below level 3 from using /test command:
new CMD_ADM_1 = 1 new CMD_ADM_2 = 2 new CMD_ADM_3 = 3 new CMD_ADM_4 = 4 new CMD_ADM_5 = 5 new CMD_ADM_6 = 6 new PlayerCmdAdmin[MAX_PLAYERS]; PlayerCmdAdmin[playerid] = CMD_ADM_2; flags:test(CMD_ADM_3 | CMD_ADM_4 | CMD_ADM_5 | CMD_ADM_6) CMD:test(playerid) { return 1; } public OnPlayerCommandReceived(playerid, cmd[], params[], flags) { if(flags && !(flags & PlayerCmdAdmin[playerid])) { SendClientMessage(playerid,-1,"Not allowed!"); return 0; } return 1; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to create flags based on admin level, but it's not working!
I wanted to prevent admins below level 3 from using /test command:
The text was updated successfully, but these errors were encountered: