Hi,, I need to remodel plugin
Deathrun lifes....
I have 4 life
When kill respawn menu
YES NO
I need when will 1 LIFE do not display menu..
THANK YOU

Kod:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "RESPAWN MENU"
#define VERSION "1.0"
#define AUTHOR "*Slavomírek*"

#define ZADANIE_HUD 98211

new g_HudSyncObj
new zivoty[33]
new g_PocetZivotov
new const g_Sound[] = "sound/misc/oziveni.mp3"

public plugin_init() 
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_event("DeathMsg", "eDeath", "a") 
   RegisterHam(Ham_Killed, "player", "respawn")
   g_HudSyncObj = CreateHudSyncObj();
   g_PocetZivotov = register_cvar("Pocet zivotov po pripojeni","4")
}

public client_connect( id ) 
{
   new nzivoty = get_pcvar_num(g_PocetZivotov)
   zivoty[id] = nzivoty
}


public eDeath(  )
{
   new victim = read_data(2)
   
   if(zivoty[victim] > 0)
   {
      menu1( victim )   
   }
   
}

public plugin_precache()
{
   precache_generic(g_Sound)
}

public client_authorized(id)
{
        set_task(6.0,"Message_Hud",id + ZADANIE_HUD)
}

public Message_Hud(id)
{
        id-= ZADANIE_HUD;
        set_hudmessage(0, 255, 0, 0.10, 0.70, 0, 6.0, 12.0);
        ShowSyncHudMsg(id, g_HudSyncObj, "Celkom mas %i zivoty.^nChces viac? Napis /vip do chatu!",zivoty[id]) 
        set_task(0.1,"Message_Hud",id + ZADANIE_HUD)
}

public menu1(id)
{
new menu = menu_create("Chces sa respawnut ?","menu1_handle")
menu_additem(menu, "Ano")
menu_additem(menu, "Nie")
menu_display(id, menu)
}
public menu1_handle(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
switch(item)
{
case 0:
{
zivoty[id] -= 1
ExecuteHamB(Ham_CS_RoundRespawn,id)
client_print(id,print_center,"Bol si respawnuty")
client_cmd(id,"mp3 play %s",g_Sound)
}

case 1: menu_destroy(menu)
   
}
return PLUGIN_HANDLED 
}
public respawn(victim,shouldgib)
{
if(!is_user_alive(victim))
{
menu1(victim)
}
}