Quote:
Originally Posted by Philip123
And I need to edit admin permissions commands, how to do it? Where to find it?
|
Do you mean you want to add admin level requirement to the command? If that's so, you need to do it as following:
Let's say you have a variable which has player's administrator level stored in it, like pAdmin or something. In that case in the beginning of every command that requires an administrative level check, you do this:
Код:
if(strcmp(...)) //or cmd:CMDName(...) in case you use zcmd, whatever.
{
if(pAdmin < 1) return SendClientMessage(playerid, COLOR_GREY, "Only level 1+ administrators can use this command!");
...
}
As long as the calling player's admin level is less than 1, he won't be able to use that command. Change the number in the check accordingly to requirements you want to set.
You have to remember to use enums and some file-related functions I'd say, to save the admin level for the player etc.
--If that's not what you meant, be more specific, since I am afraid people still aren't psychics and can't read thoughts.