Page 1 of 1
Removing "reset xp" from race menu
Posted: Tue Jul 22, 2008 3:20 am
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.
Re: Removing "reset xp" from race menu
Posted: Tue Jul 22, 2008 7:42 am
by Geesu
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
Re: Removing "reset xp" from race menu
Posted: Tue Jul 22, 2008 11:43 am
by Mayhem
That's what I was thinking..lol They lost it somehow though.
Re: Removing "reset xp" from race menu
Posted: Wed Jul 23, 2008 10:56 am
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
Re: Removing "reset xp" from race menu
Posted: Wed Jul 23, 2008 11:05 am
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
Re: Removing "reset xp" from race menu
Posted: Wed Jul 23, 2008 8:12 pm
by Mayhem
Thanks for the help. It works great.