02.08.2012, 15:52
Ser sincero й uma coisa, fazer brincandeiras idiotas na hora errada й outra...
Pelomenos estou fazendo meu gm do zero com todos sistemas proprios.. Nгo editando BMG.. Boa tarde.
@Topic
Vlw a todos que me ajudaram!
@edit
Esse codigo funciona?
Pelomenos estou fazendo meu gm do zero com todos sistemas proprios.. Nгo editando BMG.. Boa tarde.
@Topic
Vlw a todos que me ajudaram!
@edit
Esse codigo funciona?
pawn Код:
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;
}