Other ultimates and skills disabled on seected maps
Posted: Fri Jul 23, 2010 6:20 am
Hi there u guys who love war3ft.
I am triing to add the teleport ultimate,lightning ultimate and the suicide ultimate to be restricted on maps like fy_* and aim_*
and here its wath i have done so far:
in constants.inl after
i added
in ultimates.inl
after
add
and in war3ft.inl
after
i added
The plugin compiles fine but in the ultimates arent restricted.
IS there something that i didnt made for this to work?
I am triing to add the teleport ultimate,lightning ultimate and the suicide ultimate to be restricted on maps like fy_* and aim_*
and here its wath i have done so far:
in constants.inl after
Code: Select all
new bool:g_bGlovesDisabled = false;
Code: Select all
new bool:g_bOrcUltDisabled = false;
new bool:g_bCryptUltDisabled = false;
new bool:g_bHumanUltDisabled = false;
after
Code: Select all
ULT_Available( id )
{
Code: Select all
if ( p_data[id][P_RACE] == RACE_HUMAN || p_data[id][P_RACE] == RACE_ORC || p_data[id][P_RACE] == RACE_CRYPT )
{ if( g_bHumanUltDisabled || g_bOrcUltDisabled || g_bCryptUltDisabled )
{ client_print( id, print_chat, "Ultimate is disabled on this map!" );
return false;
}
}
after
Code: Select all
g_bGlovesDisabled = WC3_MapDisableCheck( "item_gloves.cfg" );
Code: Select all
g_bOrcUltDisabled = WC3_MapDisableCheck( "ult_orc.cfg" );
g_bCryptUltDisabled = WC3_MapDisableCheck( "ult_crypt.cfg" );
g_bHumanUltDisabled = WC3_MapDisableCheck( "ult_human.cfg" );
IS there something that i didnt made for this to work?