02.06.2012, 20:05
Pronto:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
new Float:Vida, Float:Colete;
if(issuerid != INVALID_PLAYER_ID && GetPlayerSkin(issuerid) == GetPlayerSkin(playerid))
{
if(GetPlayerArmour(playerid, Colete) == 0)
{
GetPlayerHealth(playerid, Vida);
SetPlayerHealth(playerid, Vida+amount);
}
else
{
GetPlayerArmour(playerid, Colete);
SetPlayerArmour(playerid, Colete+amount);
}
}
return 1;
}