On zombie swarm for classes i made hp when first round start it will be like set
but when next round starts or die hp will set to 100 help please.
PHP Code:
cvar_ZombieAhealth, cvar_ZombieAgravity, cvar_ZombieAspeed
PHP Code:
cvar_ZombieManHealth, cvar_ZombieManGravity, cvar_ZombieManSpeed
PHP Code:
cvar_ZombieAhealth = register_cvar("zswarm_zahealth", "800")
cvar_ZombieAgravity = register_cvar("zswarm_zagravity", "700")
cvar_ZombieAspeed = register_cvar("zswarm_zaspeed", "250")
cvar_ZombieManHealth = register_cvar("zswarm_zmhealth", "700")
cvar_ZombieManGravity = register_cvar("zswarm_zmgravity", "800")
cvar_ZombieManSpeed = register_cvar("zswarm_zmspeed", "270")
PHP Code:
new Float:zmhealth, Float:zmgravity
zmhealth = get_pcvar_float(cvar_ZombieManHealth)
zmgravity = get_pcvar_float(cvar_ZombieManGravity)
static Float:zmspeed; zmspeed = get_pcvar_float(cvar_ZombieManSpeed)
set_pev(id, pev_maxspeed, zmspeed)
set_pev(id, pev_health, zmhealth)
set_pev(id, pev_gravity, zmgravity)
PHP Code:
new Float:zahealth, Float:zagravity
zahealth = get_pcvar_float(cvar_ZombieAhealth)
zagravity = get_pcvar_float(cvar_ZombieAgravity)
static Float:zaspeed; zaspeed = get_pcvar_float(cvar_ZombieAspeed)
set_pev(id, pev_maxspeed, zaspeed)
set_pev(id, pev_health, zahealth)
set_pev(id, pev_gravity, zagravity)