Removing "reset xp" from race menu
Moderator: Forum Moderator
Removing "reset xp" from race menu
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.
Re: Removing "reset xp" from race menu
They would have to be r-tards 
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

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
Re: Removing "reset xp" from race menu
That's what I was thinking..lol They lost it somehow though.
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: Removing "reset xp" from race menu
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

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: Removing "reset xp" from race menu
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
and simple replace it with this and save it and recompile
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
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;
}
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" );
}

Re: Removing "reset xp" from race menu
Thanks for the help. It works great.