I have made this:
PHP Code:
new szMap[ 20 ]
<...>
new const awpmapnames[][] =
{
"2x2", "cs_max"
}
<...>
get_mapname( szMap , charsmax( szMap ) );
for( new i = 0 ; i < sizeof( awpmapnames ) ; i++ )
{
if ( containi(szMap , awpmapnames[ i ]) !=-1 )
{
menu_additem(menu, "\yAWP su Deagle", "3", 0);
}
}
This code does that if map name contains "2x2" or "cs_max" in it, it will show menu_additem. I need to make that menu_additem wouldn't show in that maps.