Admin Xp Help
Posted: Sun Apr 02, 2006 8:46 pm
is there a way to disable admins from giving or taking xp?
Code: Select all
/* AMXMOD X script.
*
* Warcraft 3: Frozen Throne
* by Geesu==Pimp Daddy==OoTOAoO=
* http://www.war3ft.com
*
* Credits to:
* Spacedude (for War3 MOD)
* Ludwig Van (for flamethrower)
* OLO (for spectating rank info)
* JGHG for the mole code
* [AOL]Demandred, [AOL]LuckyJ for help coding it for steam
* [AOL]Demandred for freezetime exploit fix
* Everyone at amxmod.net/amxmodx.org for help
* joecool12321 for various health related fixes
* Tri Moon for various improvements (No Race, war3menu, etc...)
* xeroblood for spotting some bugs for me :)
* bad-at-this for contributing the status bar code used for godmode (big bad voodoo)
* bad-at-this for creating race 9
* kamikaze for...
help w/testing version before release
always helping people out on the forums
contributing code for the anti-skywalking
* ryannotfound (wc3mods.net/war3x) for some of the naming conventions used (function names, constants, etc...) and functions
* Lazarus Long for adding ALL of the sql-lite code and fine-tuning the existing MySQL code... It's so much pertier
*/
new const WC3NAME[] = "Warcraft 3 Frozen Throne"
new const WC3AUTHOR[] = "Geesu==(Pimp Daddy==OoTOAoO)"
new const WC3VERSION[] = "2.3.1b"
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <fakemeta>
#include <dbi>
// Compiling Options
#define MOD 0 // 0 = cstrike or czero, 1 = dod
#define ADMIN_LEVEL_WC3 ADMIN_LEVEL_A // set the admin level required for giving xp and accessing the admin menu (see amxconst.inc)
#define ADVANCED_STATS 1 // Setting this to 1 will give detailed information with psychostats (hits, damage, hitplace, etc..) for war3 abilities
#define PRECACHE_WAR3FTSOUNDS 1
// Debugging Options
#define DEBUG 0 // Only use this when coding.. you normally don't want it
#define ADVANCED_DEBUG 0 // Prints debug information to a log file when every function is called, VERY LAGGY
#define ADVANCED_DEBUG_BOTS 1 // Print info for bots too?
Code: Select all
; Users configuration file
; File location: $moddir/addons/amxmodx/configs/users.ini
; Line starting with ; is a comment
; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)
thank you. =DKrazy wrote:Change the level to this: ADMIN_LEVEL_H
and then give no one the "t" flag and then no one can use it.