So I have this code:
PHP Code:
public Showrod(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new CT = get_pcvar_num (awp_ct)
new TR = get_pcvar_num (awp_t)
get_mapname( szMap , charsmax( szMap ) );
map_active = get_pcvar_num (g_map_active)
awp_active = get_pcvar_num (g_awp_active)
if (map_active == 1) //Checks if map_active is 1
{
for( new i = 0 ; i < sizeof( mapnames ) ; i++ )
{
if ( containi( szMap , mapnames[ i ] ) !=-1 ) //Checks if map is the one mentioned in const mapnames
{
client_print(id, print_center, "VIP meniu sitame zemelapyje neveikia!") //Sends a message that VIP can't use VIP menu on that map
}
if ( containi( szMap , mapnames[ i ] ) !=-1 ) //Checks if map is the one mentioned in const mapnames
return; //Stop VIP from getting the VIP menu
}
}
new menu = menu_create("\rVIP meniu:", "Pressedrod"); //Creates menu
menu_additem(menu, "\yM4A1 su Deagle", "1", 0); //Menu choise/case 1
menu_additem(menu, "\yAK47 su Deagle", "2", 0); //Menu choise/case 2
if( iPlayers[0] >= TR && iPlayers[1] >= CT )
{
for( new i = 0 ; i < sizeof( awpmapnames ) ; i++ )
{
if (awp_active == 1)
{
if ( containi( szMap , awpmapnames[ i ] ) !=-1 ) //Checks if map is the one mentioned in const awpmapnames
return HERE;
}
}
menu_additem(menu, "\yAWP su Deagle", "3", 0); //Menu choise/case 3
}
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0); //Displays the menu
}
}
Where is the code "return HERE;" what should I type there so it wouldn't completely stop the public showrod, but would stop the menu_additem(menu, "\yAWP su Deagle", "3", 0)?