Code:
new id = x
static menu[1000], len
len = 0
len += formatex(menu[len], charsmax(menu) - len, "\yJucatorul -\d %s\y te-a provocat la PHF pe %d Credite^n^n",szName,Miza)
len += formatex(menu[len], charsmax(menu) - len, "\y1.\w Accepta^n")
len += formatex(menu[len], charsmax(menu) - len, "\y2.\w Refuza^n")
show_menu(iPlayer, KEYSMENU, menu, -1, "Piatra hartie foarfeca")
public menu_phf(id, key)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
switch (key)
{
case 0:
{
g_acceptphf[id]=true
client_cmd(id,"spk buttons/button9")
}
case 1:
{
g_acceptphf[id]=false
remove_task(51373)
g_phfinit[id]=0
client_cmd(id,"spk buttons/button9")
}
}
}
}
I need to send original "id" to the menu handler, how can I do that?
I need to set g_phfinit[] to 0 for the player that invoked the menu on iPlayer