AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Set Admin (https://forums.alliedmods.net/showthread.php?t=301423)

khashayar007 09-20-2017 12:46

[REQ] Set Admin
 
Hi. I want a plugin when an admin types amx_setadmin it opens a menu for adding new admin. Menu is like this:
First Choose Player then show 3 options for being admin(Player Name - Steam -ip) then show 2 options for password(With Password - Without Password) after that show 3 options of admins permissions(Owner - HeadAdmin - Admin)
Owner flag: abcdefghijklmnopqrstu
HeadAdmin flag: abcdefghijkmnopqrstu
Admin flag: bcdefghijkmnopqrstu

DjSoftero 09-20-2017 12:57

Re: [REQ] Set Admin
 
is this meant to be used with users.ini or amxbans, or some other system?

khashayar007 09-20-2017 13:26

Re: [REQ] Set Admin
 
users.ini

tarsisd2 09-20-2017 17:27

Re: [REQ] Set Admin
 
Quote:

Originally Posted by khashayar007 (Post 2549900)
users.ini

????
he does not want this, what you're looking for has been made already, somewhere on this forum, i will look for it

khashayar007 09-21-2017 01:07

Re: [REQ] Set Admin
 
I mean for saving admins in users.ini files. I have searched a lot and couldn't find the plugin.

Relaxing 09-21-2017 08:51

Re: [REQ] Set Admin
 
How about editing the amx_addadmin func.
Checking if the password param is equal to X string and setting it to something

Rohanlogs 09-22-2017 07:43

Re: [REQ] Set Admin
 
1 Attachment(s)
Hey try this.
The menu will probably not open if there aren't any valid users online, so you need to test it with players.

Commands:
/addadmin
amx_addadmin_menu

Required flag for menu is L (rcon). You can change it by editing line #5

SomewhereLost 09-24-2017 13:31

Re: [REQ] Set Admin
 
Quote:

Originally Posted by Rohanlogs (Post 2550207)
Hey try this.
The menu will probably not open if there aren't any valid users online, so you need to test it with players.

Commands:
/addadmin
amx_addadmin_menu

Required flag for menu is L (rcon). You can change it by editing line #5

I havent tried it but, is there a possibility to create another file instead of writing player's infos in users.ini, which will share the same function as users.ini. Like for example, using users.ini for Owner/Head/Admins and using another file something.ini for regular VIP/SuperVIPs? If so, I'd like to have that modified one.

Rohanlogs 09-25-2017 04:19

Re: [REQ] Set Admin
 
Quote:

Originally Posted by SomewhereLost (Post 2550643)
I havent tried it but, is there a possibility to create another file instead of writing player's infos in users.ini, which will share the same function as users.ini. Like for example, using users.ini for Owner/Head/Admins and using another file something.ini for regular VIP/SuperVIPs? If so, I'd like to have that modified one.

Yes, its totally possible to store VIPs in a different file.

SomewhereLost 09-25-2017 18:08

Re: [REQ] Set Admin
 
Quote:

Originally Posted by Rohanlogs (Post 2550720)
Yes, its totally possible to store VIPs in a different file.

Quote:

If so, I'd like to have that modified one.


All times are GMT -4. The time now is 03:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.