Page 1 of 1
Removing "Mole" option
Posted: Wed Aug 13, 2008 11:21 pm
by Mayhem
Could someone show me how to remove the "mole" from shopmenu and also the say command? I'd like it so the "mole" cannot be purchased. Only used by a warden. Thanks.
Re: Removing "Mole" option
Posted: Thu Aug 14, 2008 12:31 am
by whosyourdaddy
open items.inl and change this line
Code: Select all
case ITEM_MOLE:
{
g_bPlayerBoughtMole[id] = true;
}
to
Code: Select all
case ITEM_MOLE:
{
client_print( id, print_center, "Mole has Been Disabled" );
new money = cs_get_user_money(id)
cs_set_user_money(id, ITEM_COST[ITEM_MOLE] + money)
}
Re: Removing "Mole" option
Posted: Thu Aug 14, 2008 6:30 pm
by Mayhem
Thanks again for your help.
Disabling the "mole" item should be added to the plugin. A lot of people hate it.
Re: Removing "Mole" option
Posted: Thu Aug 14, 2008 9:56 pm
by whosyourdaddy
its possible i made several scripts where u can disable it on certain maps for myself, its not easy tho and i believe geesu has alot of other things that he needs to fix first
Re: Removing "Mole" option
Posted: Fri Aug 15, 2008 7:53 pm
by Mayhem
Your fix works fine. Thanks again.