02.07.2018, 09:44
I am aware I bump a 3-year old thread but there are not many threads that document y_groups.
I've decided to use y_commands + y_groups for the administrator team. I'll be using the "levels" method as it is mentioned in this thread but I have got 2 questions.
In SetAdminCommand function, shouldn't it be as the one below?
If "level" is 1, it should allow any admin with level 1+ to use the command. If it only checks for being equal, it basically ignores the higher-level administrators.
The second question is about setting the administrator to the group. For the case given, there are max 3 admin levels. If someone is set as being level 3, then shouldn't be in all groups (level 1+ group, level 2+ group, level 3 group)?
I've decided to use y_commands + y_groups for the administrator team. I'll be using the "levels" method as it is mentioned in this thread but I have got 2 questions.
In SetAdminCommand function, shouldn't it be as the one below?
pawn Code:
if (cl >= level)
The second question is about setting the administrator to the group. For the case given, there are max 3 admin levels. If someone is set as being level 3, then shouldn't be in all groups (level 1+ group, level 2+ group, level 3 group)?
pawn Code:
for (new i = level_to_be_set - 1; i > -1; i--)
{
Group_SetPlayer(gAdmins[i], playerid, true);
}