10.06.2012, 19:03
Hello, I need an damage script, when you shooting at someone like with Deagle it'll damage 70 percent of his HP.
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
return 1;
}
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(GetPlayerWeapon(shooter) == 24)
{
new float: hp;
GetPlayerHealth(target, hp);
SetPlayerHealth(target, hp-70);
}
return 1;
}
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: pawn Код:
pawn Код:
|