09.12.2010, 14:56
Hi, the include is working ok. You need another player to test it.
pawn Код:
public OnPlayerShootPlayer(shooter,target,damage)
{
if(GetPlayerWeapon(shooter)== 22)
{
new Float:health;
GetPlayerHealth(target,health);
if(health-30 > 0) // if health is set 0 or below onplayerdeath will be called for suicide
{
SetPlayerHealth(target,health-30);
SendClientMessage(target, cinza, "Hurt!");
}
}
return 1;
}