19.04.2013, 16:12
Quote:
Well the internal permissions are checked regardless of what other code is in the command, so yes they're more efficient simply because not using them is just more code. However, even if that were not the case I've seen commands with multiple checks for all sort of different conditions " is in one of seven teams", "is an admin" etc, which are all wrapped up in to a single check when using the inbuilt permissions.
|
In other words, would you use it like:
Код:
if(Command_GetPlayerNamed(hi, playerid)) == 0) return SendClientMessage(playerid, RED, "Bye.");
Sorry for barraging you with question - like I said if you're busy don't bother but I really appreciate the help. I'm more than capable of using y_commands, I just want to gain a better understanding of its internal features to be able to use it more efficiently. I've checked out a few tutorials and still have yet to find one using the internal permissions.