[ZP] Ayuda - Duda
#1
Hola que tal buenas a todos, quería saber si me pueden ayudar a darle unas mejoras al hacer "reset", por ejemplo cuando reseteen, se le sume vida, velocidad, chaleco y daño. Quería saber como puedo hacerlo, con que me guíen ya después lo pongo en el sma y pruebo.. Si me dan una mano con eso se lo agradezco muchas gracias..
Responder
#2
Código PHP:
#define damage_reset(%1)     (%1 * 0.5)  + 20.0)  // donde el %1 es la cantidad de resets que tienes

//En take damage, donde está el daño de los humanos
damage *= damage_reset(variabledereset[attacker]) 

fuente
Responder
#3
(12/08/2019, 11:52 PM)GoldenCosta escribió:
Código PHP:
#define damage_reset(%1)     (%1 * 0.5)  + 20.0)  // donde el %1 es la cantidad de resets que tienes

//En take damage, donde está el daño de los humanos
damage *= damage_reset(variabledereset[attacker]) 

fuente

Y cómo sería con la vida, chaleco y velocidad? Y en dónde lo pondría ?
Responder
#4
es lo mismo.....

Código PHP:
#define ammount_hdamage(%1)         (%1 + 2) * 0.2 
#define ammount_hspeed(%1)         (%1 * 5) 
#define ammount_hhealth(%1)         (%1 * 15) 
#define ammount_harmor(%1)         (%1 * 15) 
#define ammount_hgravity(%1)     ((%1 * 0.02) * 2) 

busca en tu zp donde se le agrega a un zombie y a los humanos las habilidades

Código PHP:
ammount_hspeed(variabledereset[id]) 
ammount_hhealth(variabledereset[id]) 
etcccc.. 
Responder
#5
(13/08/2019, 12:41 AM)GoldenCosta escribió: es lo mismo.....

Código PHP:
#define ammount_hdamage(%1)         (%1 + 2) * 0.2 
#define ammount_hspeed(%1)         (%1 * 5) 
#define ammount_hhealth(%1)         (%1 * 15) 
#define ammount_harmor(%1)         (%1 * 15) 
#define ammount_hgravity(%1)     ((%1 * 0.02) * 2) 

busca en tu zp donde se le agrega a un zombie y a los humanos las habilidades

Código PHP:
ammount_hspeed(variabledereset[id]) 
ammount_hhealth(variabledereset[id]) 
etcccc.. 
Disculpa esto es lo que me tira en consola cuando hago el reset

L 08/20/2019 - 11:34:54: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 08/20/2019 - 11:34:54: [AMXX] Run time error 4: index out of bounds
L 08/20/2019 - 11:34:54: [AMXX] [0] zombie_plague40.sma::fw_PlayerPreThink (line 2997)
Código PHP:
set_pev(idpev_maxspeedfloat(g_hclass_spd[g_humanclass[id]] + ammount_hspeed(g_skill_points[id][0][2]) + VELO_RR(g_reset[id]))) 
esa es la linea como tendria que hacer ahi?
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)