[Tutorial] Admin levels with y_groups
#2

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?
pawn Code:
if (cl >= level)
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)?
pawn Code:
for (new i = level_to_be_set - 1; i > -1; i--)
{
    Group_SetPlayer(gAdmins[i], playerid, true);
}
Reply


Messages In This Thread
Admin levels with y_groups - by corne - 14.04.2015, 19:13
Re: Admin levels with y_groups - by Calisthenics - 02.07.2018, 09:44
Re: Admin levels with y_groups - by CodeStyle175 - 02.07.2018, 13:51
Re: Admin levels with y_groups - by CaptainBoi - 02.07.2018, 17:37
Re: Admin levels with y_groups - by Mobtiesgangsa - 02.07.2018, 23:33
Re: Admin levels with y_groups - by Verc - 03.07.2018, 04:23

Forum Jump:


Users browsing this thread: 1 Guest(s)