I'm migrating from izcmd to PawnCMD and I'm interested to use flags instead of normal if checks.
I'm having some problem here:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
if (flags && !(flags & p_Permissions[ playerid ] ) )
{
return SendError( playerid, "You don't have access to this command." ), 0;
}
return 1;
}
I want to pass the command if it doesn't have any flags, but this still doesn't work, I don't want to manually assign every single command I have right now
My commands:
I'm migrating from izcmd to PawnCMD and I'm interested to use flags instead of normal if checks. I'm having some problem here:
I want to pass the command if it doesn't have any flags, but this still doesn't work, I don't want to manually assign every single command I have right now My commands:
How I'm assigning the flags:
I can access /stats but I can't access /ownercmds.