Modifying weapon damage?
#3

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Well use OnPlayerShootPlayer indeed.
Use the callback:

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
And then, if the "shooter" shot "target", and the weapon of the "shoot" is sniper, set "target" 's health - 100 HP.
Here's an example

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
    new Float:H;
    GetPlayerHealth(target, H);
    if(GetPlayerWeapon(shooter) == 34)
        SetPlayerHealth(target, H-100);
    return 1;
}
That should work ^^
Here's the include: https://sampforum.blast.hk/showthread.php?tid=195439
Yes, that should work perfectly.
Reply


Messages In This Thread
Modifying weapon damage? - by Zack9764 - 08.01.2011, 12:24
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 12:29
Re: Modifying weapon damage? - by wups - 08.01.2011, 12:31
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 12:44
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 13:44
Re: Modifying weapon damage? - by wups - 08.01.2011, 13:45
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 13:50
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 14:01
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 14:03
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)