23.03.2014, 00:20
vc n entendeu. caso o code esteja errado, desculpa й pq to no cel.
pawn Code:
new Float:vida, Float:colete;
public OnPlayerUpdate(playerid){
GetPlayerHealth(playerid, vida);
GetPlayerArmour(playerid, colete);
return 1;
}
// Em OnPlayerGiveDamage
if(GetPlayerTeam(playerid) == GetPlayerTeam(damagedid))
{
if(weaponid == 34 || bodypart == 9)
{
if(nox1[playerid] == 0 && nox1[damagedid] == 0)
{
SetPlayerArmour(damagedid, colete);
SetPlayerHealth(damagedid, vida);
return 1;
}
}
}