In my experience, prints are always better
PHP Code:
public Ham_Spawn_post(id)
{
client_print(id, print_chat, "[debug] ham spawn was executed")
if(is_user_alive(id))
{
message_begin(MSG_ONE, g_pMsgHideWeapon, _, id);
write_byte(8);
message_end();
show_weapon_menu(id);
client_print(id, print_chat, "[debug] the menu will show up now")
}
else
client_print(id, print_chat, "[debug] the menu won't show because you are not alive yet and KliPPy was right")
}
Then you will know if the problem is ham_spawn or maybe the menu (?