15.08.2012, 10:18
How do you check where the player is aiming at?
You should use this include, I think https://sampforum.blast.hk/showthread.php?tid=195439.
And smth like this:
Hope that helps
You should use this include, I think https://sampforum.blast.hk/showthread.php?tid=195439.
And smth like this:
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { new Float:Health[2]; GetPlayerHealth(Target, Health[0]); GetPlayerArmour(Target,Health[1]); if(GetPlayerWeapon(Shooter) == 24) { if(H[1] > 0) return SetPlayerArmour(Target,0); SetPlayerHealth(Target, H[0]-100); } }