Removing "reset xp" from race menu

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
Mayhem
Peon
Posts: 26
Joined: Mon Jun 09, 2008 9:41 pm
Location: California, USA
Contact:

Removing "reset xp" from race menu

Post by Mayhem »

Is there an easy way to remove the "reset xp" option from the race menu? I've had several people complain about their xp being reset and I'm thinking it was self inflicted.
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Re: Removing "reset xp" from race menu

Post by Geesu »

They would have to be r-tards :P

There is a confirmation screen after you select it that says "ARE YOU SURE you want to reset your XP to 0?"

I doubt that's how they're losing it
No Support via PM
Mayhem
Peon
Posts: 26
Joined: Mon Jun 09, 2008 9:41 pm
Location: California, USA
Contact:

Re: Removing "reset xp" from race menu

Post by Mayhem »

That's what I was thinking..lol They lost it somehow though.
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: Removing "reset xp" from race menu

Post by whosyourdaddy »

i removed it from mine... its kidna easy actaully remove like 2 or 3 command lines so they also cant type resetxp and change 2 numbers in one file so it will skip the reset xp option
Image
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: Removing "reset xp" from race menu

Post by whosyourdaddy »

here ill help you out cause i know how hard it can be with users saying there xp got reseted and if you should believe them or not... open war3ft/menu.inl and find this

Code: Select all

public MENU_ResetXP(id)
{

	static szMenu[128];
	new keys = (1<<0)|(1<<1)|(1<<9);
	
	formatex( szMenu, 127, "%L^n^n\w1. Yes^n\w2. No", id, "MENU_RESET_XP" );

	show_menu( id, keys, szMenu, -1 );

	return;
}

public _MENU_ResetXP( id, key )
{
	
	if ( !WC3_Check() )
	{
		return PLUGIN_HANDLED;
	}

	// User selected yes
	if ( key == 0 )
	{
		XP_Reset( id );
	}
	
	return PLUGIN_HANDLED;
}
and simple replace it with this and save it and recompile

Code: Select all

public MENU_ResetXP(id)
{

	client_print( id, print_center, "THIS OPTION HAS BEEN DISABLED" );
}

public _MENU_ResetXP( id, key )
{
	
	client_print( id, print_center, "THIS OPTION HAS BEEN DISABLED" );
}
this is the easy way mine has it completly removed so they dont have the option but this will print out "this option has been disabled" if they try using it
Image
Mayhem
Peon
Posts: 26
Joined: Mon Jun 09, 2008 9:41 pm
Location: California, USA
Contact:

Re: Removing "reset xp" from race menu

Post by Mayhem »

Thanks for the help. It works great.
Post Reply