27.02.2018, 14:10
Zkus toto:
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 0 && AFK[playerid])
{
new Float:iarmour;
new Float:ihealth;
GetPlayerArmour(playerid, iarmour);
GetPlayerHealth(playerid, ihealth);
SetPlayerArmour(playerid, iarmour);
SetPlayerHealth(playerid, ihealth);
}
}
return 1;
}

