[Ajuda] Diminuir Dano das armas
#5

sim isto eu sei so queria saber como mudo o valor no codigo rsrs

to tentando aki mais bate erro/warning x.x
aki vai


public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
new Float:Life, Float:Coleete, Floatano;
GetPlayerArmour(damagedid, Coleete);
GetPlayerHealth(damagedid, Life);
if(Coleete > 0)
{
if(amount > Coleete)
{
Dano = amount - Coleete;
Life = Life - Dano;
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, Life);
return 1;
}
Coleete = Coleete - amount;
SetPlayerArmour(damagedid, Coleete);
}
if(Coleete < 1)
{
Life = Life - amount;
SetPlayerHealth(damagedid, Life);
}
return 1;
}
Reply


Messages In This Thread
Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 18:43
Re: Diminuir Dano das armas - by FenixBorn - 16.09.2012, 18:44
Re: Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 18:53
Re: Diminuir Dano das armas - by FenixBorn - 16.09.2012, 18:55
Re: Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)