10.06.2012, 19:17
There's an include that provides you "OnPlayerShootPlayer" callback, you can get it from here.
After you have it installed (( Adding the pastebin to a .ini file, #include 'file name' ))
Make this Callback:
And there you go:
Enjoy.
After you have it installed (( Adding the pastebin to a .ini file, #include 'file name' ))
Make this Callback:
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
return 1;
}
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(GetPlayerWeapon(shooter) == 24)
{
new float: hp;
GetPlayerHealth(target, hp);
SetPlayerHealth(target, hp-70);
}
return 1;
}