Damage script.
#4

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 Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
 
    return 1;
}
And there you go:

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;
}
Enjoy.
Reply


Messages In This Thread
Damage script. - by Misterflowers - 10.06.2012, 19:03
Re: Damage script. - by sniperwars - 10.06.2012, 19:09
Re: Damage script. - by Elysian` - 10.06.2012, 19:17
Re: Damage script. - by Randy More - 10.06.2012, 19:17
Re: Damage script. - by JhnzRep - 10.06.2012, 19:24
Re: Damage script. - by Randy More - 10.06.2012, 19:33
Re : Damage script. - by ricardo178 - 10.06.2012, 19:48
Re: Re : Damage script. - by PrawkC - 10.06.2012, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)