and do i rename the index of another function to?
like so
PHP Code:
public handgun_menu(tempid)
{
check_user(tempid)
{
new handgunmenu = menu_create("\yChoose your handgun:", "sub_handgun_menu")
menu_additem(handgunmenu, "\wUsp", "1", 0);
menu_additem(handgunmenu, "\wGlock", "2", 0);
menu_additem(handgunmenu, "\wDual Elites", "3", 0);
menu_additem(handgunmenu, "\wDeagle", "4", 0)
menu_setprop(handgunmenu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, handgunmenu, 0);
}
return PLUGIN_HANDLED
}
or like this, without renaming that
PHP Code:
public handgun_menu(id)
{
check_user(id)
{
new handgunmenu = menu_create("\yChoose your handgun:", "sub_handgun_menu")
menu_additem(handgunmenu, "\wUsp", "1", 0);
menu_additem(handgunmenu, "\wGlock", "2", 0);
menu_additem(handgunmenu, "\wDual Elites", "3", 0);
menu_additem(handgunmenu, "\wDeagle", "4", 0)
menu_setprop(handgunmenu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, handgunmenu, 0);
}
return PLUGIN_HANDLED
}
and how do i use it in a death event?
like this
PHP Code:
public PlayerDeath()
{
new attacker = read_data(1)
new victim = read_data(2)
if( cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
{
lr_started = false
}
if(spray_on)
{
server_cmd("decalfrequency 20")
spray_on = false
}
}
__________________