Admin Xp Help

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
s0ulja
Peon
Posts: 13
Joined: Sun Jul 31, 2005 12:59 pm
Contact:

Admin Xp Help

Post by s0ulja » Sun Apr 02, 2006 8:46 pm

is there a way to disable admins from giving or taking xp?
Image

User avatar
Manix
Forum Moderator
Forum Moderator
Posts: 53
Joined: Fri Jul 29, 2005 9:55 pm

Post by Manix » Sun Apr 02, 2006 11:14 pm

yeah, right at the top of warcraft3FT.sma

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?
change ADMIN_LEVEL_A to a flag some of your other admins don't have.

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)
then recompile the plugin

s0ulja
Peon
Posts: 13
Joined: Sun Jul 31, 2005 12:59 pm
Contact:

Post by s0ulja » Mon Apr 03, 2006 2:21 pm

no im talking about completely deleting it so admins cant give xp not changing levels
Image

User avatar
Krazy
Forum Administrator
Posts: 282
Joined: Wed Jul 06, 2005 9:40 am
Location: Dayton, Ohio
Contact:

Post by Krazy » Mon Apr 03, 2006 2:26 pm

Change the level to this: ADMIN_LEVEL_H

and then give no one the "t" flag and then no one can use it.
Website: www.djpsych.com
Image

Need help anything to do with Warcraft 3 Mod, installing other plugins, setting up mySQL, installing PsychoStats, or anything else just PM/email me!

User avatar
Manix
Forum Moderator
Forum Moderator
Posts: 53
Joined: Fri Jul 29, 2005 9:55 pm

Post by Manix » Mon Apr 03, 2006 10:48 pm

Krazy wrote:Change the level to this: ADMIN_LEVEL_H

and then give no one the "t" flag and then no one can use it.
thank you. =D

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Mon Apr 03, 2006 10:57 pm

Next release this will be in the war3ft.cfg file, so not recompiled required
No Support via PM

Post Reply