24.08.2016, 00:15
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:hp; //useless
new Float:armour; //not used
GetPlayerHealth(playerid, hp);//useless
GetPlayerArmour(playerid, armour);//not used
if(issuerid != INVALID_PLAYER_ID) // Can kill team..
{
switch(bodypart)
{
case 9: SetPlayerHealth(playerid, hp - 250);//why not only SetPlayerHealth(playerid, 0);
}
}
}