Raised This Month: $12 Target: $400
 3% 

[REQ] Set Admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 09-20-2017 , 12:46   [REQ] Set Admin
Reply With Quote #1

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
khashayar007 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 09-20-2017 , 12:57   Re: [REQ] Set Admin
Reply With Quote #2

is this meant to be used with users.ini or amxbans, or some other system?
__________________
retired chump
DjSoftero is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 09-20-2017 , 13:26   Re: [REQ] Set Admin
Reply With Quote #3

users.ini
khashayar007 is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-20-2017 , 17:27   Re: [REQ] Set Admin
Reply With Quote #4

Quote:
Originally Posted by khashayar007 View Post
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
tarsisd2 is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 09-21-2017 , 01:07   Re: [REQ] Set Admin
Reply With Quote #5

I mean for saving admins in users.ini files. I have searched a lot and couldn't find the plugin.
khashayar007 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 09-21-2017 , 08:51   Re: [REQ] Set Admin
Reply With Quote #6

How about editing the amx_addadmin func.
Checking if the password param is equal to X string and setting it to something
__________________
Relaxing is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 09-22-2017 , 07:43   Re: [REQ] Set Admin
Reply With Quote #7

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
Attached Files
File Type: sma Get Plugin or Get Source (addadmin_menu.sma - 412 views - 8.6 KB)
__________________
Rohanlogs is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 09-24-2017 , 13:31   Re: [REQ] Set Admin
Reply With Quote #8

Quote:
Originally Posted by Rohanlogs View Post
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.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 09-25-2017 , 04:19   Re: [REQ] Set Admin
Reply With Quote #9

Quote:
Originally Posted by SomewhereLost View Post
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.
__________________
Rohanlogs is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 09-25-2017 , 18:08   Re: [REQ] Set Admin
Reply With Quote #10

Quote:
Originally Posted by Rohanlogs View Post
Yes, its totally possible to store VIPs in a different file.
Quote:
If so, I'd like to have that modified one.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:35.


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