Hello everyone. On connection i want to show menu of my own instead of choose team menu.
That what i tried to do:
PHP Code:
register_message(get_user_msgid("ShowMenu"), "message_ShowMenu")
.......
public message_ShowMenu(msgid, dest, id)
{
static strtemp[32]
if (zp_cs_bank_status[id]<0)
load_player_money(id)
get_msg_arg_string(4, strtemp, charsmax(strtemp))
if (!equal(strtemp, "#Team_Select", strlen("#Team_Select"))||zp_cs_bank_status[id]==2||zp_cs_submenuid[id])
return PLUGIN_CONTINUE
set_msg_block(msgid, BLOCK_SET)
show_menu(id, 0, "^n", 1)
clcmd_bank(id)
return PLUGIN_HANDLED
}
If I comment //clcmd_bank(id) then there is really no team select menu, but if i don't something strange happens: my custom menu actually apprears instead of team select menu, buy if you press for example 1 in my menu you will select team, and if you press 1 once again, you will select class. Any help/explanation will be appreciated!
__________________