You can just check if the player is alive.
PHP Code:
public showmenu(id)
{
if( is_user_connected(id))
{
Code Here
}
}
PHP Code:
public showmenu(id)
{
if( is_user_alive(id))
{
Code Here
}
}
If you want show to CT and TT different menus, you can use cs_get_user_team or get_user_team.
Edit:If you want to show them a menu after they select a team even if they're dead you can use cs_get_user_team or get_user_team also.
__________________