AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Admin Permission(ported Kleenex) (https://forums.alliedmods.net/showthread.php?t=12192)

nightscreem 04-07-2005 17:53

Admin Permission(ported Kleenex)
 
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
:arrow: http://www.iwek.stylehosting.com/plu...permission.zip

twistedeuphoria 04-07-2005 18:43

Quote:

Originally Posted by BAILOPAN
- Don't hardcode paths like amxx/custom; use the get_customdir native instead


Casio 04-07-2005 18:53

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.

v3x 04-07-2005 19:24

Shouldn't you just attach the ZIP file(s)? They aren't big.

nightscreem 04-07-2005 19:25

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

Kamikaze 04-07-2005 19:59

Why if there's no admins on there with the special_permission and an admin trys to run a command with that permission?

nightscreem 04-07-2005 20:22

gonna check all

n0obie4life 04-08-2005 05:14

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 :P)

Kamikaze 04-08-2005 10:39

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 :)

nightscreem 04-08-2005 11:01

about mysql admin i have no idea but the highest admin flag on the server is mainadmin


All times are GMT -4. The time now is 08:01.

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