16.09.2012, 18:43
peguei um codigo aki do forum mesmo que deixa o LAG na skin sу que fica muito easy de matar queria retirar 30% de dano de todas as armas pq se nao fica um cъ
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) {
new Float: Life[2];
GetPlayerHealth(damagedid, Life[0]);
GetPlayerArmour(damagedid, Life[1]);
if(Life[1]) {
if(amount > Life[1]) {
Life[0] = Life[0] - (amount - Life[1]);
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, Life[0]);
return 1;
}
Life[1] = Life[1] - amount;
SetPlayerArmour(damagedid, Life[1]);
} else {
Life[0] = Life[0] - amount;
SetPlayerHealth(damagedid, Life[0]);
}
return 1;
}


ano;