I have custom menus for
Choosing Team
Choosing Model T&CT
some screens
how to Detect moment when user is pressing 1 or 2 or 3 in the menu
I was trying just to add debug text and sound but the keys auto send info , even I didnt touch them at all
PHP Code:
if( contain(szText, "Terrorist_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 model\w^n^n")
if( iKeys & MENU_KEY_1 )
{
client_cmd(id,"mp3 play sound/quad/announce/Visor.mp3")
client_print(id,print_center,"Visor")
if( get_pcvar_string(g_pModelName1, 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
}
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc