27.10.2016, 13:34
Having flags in command processors is great.
Before Pawn.CMD's release, I used to create admin commands using a special macro that checks for the admin level.
Pawn.CMD (And SmartCMD now) made it simpler by adding bit flags to any command.
But I was wondering, isn't it (more optimized)/faster to do the admin if-checks (for example), in admin commands only,
instead of checking the flags of every command that is processed?
Before Pawn.CMD's release, I used to create admin commands using a special macro that checks for the admin level.
Pawn.CMD (And SmartCMD now) made it simpler by adding bit flags to any command.
But I was wondering, isn't it (more optimized)/faster to do the admin if-checks (for example), in admin commands only,
instead of checking the flags of every command that is processed?