03.09.2012, 13:37
Now i wounder something, when i have this and someone stand close to you and you hit with the gun they lose 50 hp, anyway how i can fix that?
Then i mean not shoot, i mean hitting someone with the gun
Then i mean not shoot, i mean hitting someone with the gun
pawn Код:
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 24) SetPlayerHealth(playerid, HP-50); //DesertEagle
return 1;
}