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