PHP Code:
public Message_ShowMenu( iMsgId, iMsgDest, id )
{
new szText[20] // #IG_VIP_Team_Select
// #Terrorist_Select
// #CT_Select
get_msg_arg_string(4, szText, charsmax(szText))
if( contain(szText, "Team_Select") != -1 )
{
new iKeys = get_msg_arg_int(1)
new bool:bKeyChanged
new szText[512], n
new szName[64]
n = formatex(szText, charsmax(szText), "\ySelect a team\w^n^n")
if( get_pcvar_string(g_pCvarTerroName, szName, charsmax(szName)) )
{
n += formatex(szText[n], charsmax(szText)-n, "1. %s^n", szName)
}
else
{
n += formatex(szText[n], charsmax(szText)-n, "\d1. Not Available\w^n")
iKeys &= ~MENU_KEY_1
bKeyChanged = true
}
if( get_pcvar_string(g_pCvarCtName, szName, charsmax(szName)) )
{
n += formatex(szText[n], charsmax(szText)-n, "2. %s^n", szName)
}
else
{
n += formatex(szText[n], charsmax(szText)-n, "\d2. Not Available\w^n")
iKeys &= ~MENU_KEY_2
bKeyChanged = true
}
====================================
somewhere here
if( iKeys & MENU_KEY_1 )
{
bKeyChanged = true
MAKE NEW BOOLEAN HERE LIKE g_allowJoin[id] = true
}
}
if( iKeys & MENU_KEY_2 )
{
set Boolean to false
and make additional check for password
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc