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

Admin Permission(ported Kleenex)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-07-2005 , 17:53   Admin Permission(ported Kleenex)
Reply With Quote #1

Admin Permission

Author: KleeneX
Version: 0.1


============================================= ==
Important:
You must add this plugin in the top of the "plugins.ini", else it can't
block some commands.


============================================= ==
Description:
You have 2 files called "commands.ini" and "special_premission.ini".
In the "commands.ini" you add the commands which need a premission
by the "mainadmin".
In the "special_premission.ini" you can add the SteamID's of admins
which don't need a premission to use a command.

Than is there one CVAR called "amx_topadmin". Here you can register
the SteamID of one admin which automically gets the "mainadmin"
status when he's connecting.

============================================= ==
How does it work?
When someone use a command which is in the "commands.ini" and
he isn't the "mainadmin" or doesn't have the "special_premission".
Than will this plugin show at the "mainadmin" a menu like this:
Quote:
AMX Permission Menu:
KleeneX wants to use the command amx_ban:


1. Allow
2. Disallow

3. Show full command line
When you press 3 (Show full command line) it will show in the chat
something like that:
Quote:
amx_ban Noob 10
When you press 1 (Allow) it will send the full command to clients console
and allow him the command for 0.5 seconds. And send him a message
like that:
Quote:
The admin allow you to use the command amx_ban
When you press 2 (Disallow) than it only send this message like that
to his console:
Quote:
The admin didn't allow you to use the command amx_ban
============================================= ==
Changelog:
Version 0.2:
Fixed some bugs
Version 0.1:
First release
============================================= ==
Credits:
Xavior: Testing
Nightscream: porting to amxx

to download the .ini download them here
http://www.iwek.stylehosting.com/plu...permission.zip
__________________
- Bye bye!
nightscreem is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-07-2005 , 18:43  
Reply With Quote #2

Quote:
Originally Posted by BAILOPAN
- Don't hardcode paths like amxx/custom; use the get_customdir native instead
__________________
twistedeuphoria is offline
Casio
Member
Join Date: Jan 2005
Old 04-07-2005 , 18:53  
Reply With Quote #3

This looks like a very good plugin and it looks like you have put a lot of effort into it but it seems to me that if an Admin does not have (for example) the ban command, then there is no need to allow him to ban at all.
If the top Admin gave ban to that Admin then the ban usage could be monitored in the amxx logs.
Also I can see the top Admin getting sick of recieving requests of an Admin trying to use commands they have not been given in the first place.
That is just my opinion.
Casio is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-07-2005 , 19:24  
Reply With Quote #4

Shouldn't you just attach the ZIP file(s)? They aren't big.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-07-2005 , 19:25  
Reply With Quote #5

k but the effort is not for me it's for KleeneX he made this plugin I only ported this and twisted I'm gonna look into it
__________________
- Bye bye!
nightscreem is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 04-07-2005 , 19:59  
Reply With Quote #6

Why if there's no admins on there with the special_permission and an admin trys to run a command with that permission?
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-07-2005 , 20:22  
Reply With Quote #7

gonna check all
__________________
- Bye bye!
nightscreem is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 04-08-2005 , 05:14  
Reply With Quote #8

you beat me to it .

nice plugin. i love it. now whenever i'm on the server, no one can abuse their powers, fwhahahahahhaha (i'm the head admin )
n0obie4life is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 04-08-2005 , 10:39  
Reply With Quote #9

I just want to know how this plugin will handle the situtation when no high admins are on, do the lower admins just get rejected from using the special-permission flag commands or what?

Also would this work when you use Mysql for admin access levels.

I guess I could try it out myself and report back
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-08-2005 , 11:01  
Reply With Quote #10

about mysql admin i have no idea but the highest admin flag on the server is mainadmin
__________________
- Bye bye!
nightscreem is offline
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 03:35.


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