21.09.2012, 05:23
Deve funcionar:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) {
if(IsACop(playerid)) {
static Float: coleteChecar;
GetPlayerArmour(playerid, coleteChecar);
if(coleteChecar > 0.0) {
SetPlayerAttachedObject(x, 4, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
}
else {
RemovePlayerAttachedObject(playerid, 4);
}
}
return 1;
}