12.11.2014, 04:15
This isnt very helpful and it's rip'd from SA-MP Wiki
lemme explain;
lemme explain;
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) // Your simple call back for whenever a player takes damage
{ // Opening bracket
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) // This is getting the weapon id (For this case it's Weapon id 34) and it's getting the bodypart which is ID 9 (The head)
{
SetPlayerHealth(playerid, 0.0); // This just sets the players health down to 0
}
return 1;
} // Closing bracket
