29.11.2013, 08:44
Quote:
You can use wups include called OnPlayerShootPlayer. You need put the include in your /pawn/includes folder!
Then you need to add this on the top of your script after include <a_samp>. pawn Код:
pawn Код:
|
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
// Check if the issuer (attacker) exist and using a deagle (weapon id 24)
if(issuerid != INVALID_PLAYER_ID && weaponid == 24)
{
// The 'amount' is combined health + armour.
SetPlayerHealth(playerid, amount - 5); // You have deducted -5 amount from the player (victim).
return true;
}
}