SA-MP Forums Archive
Playerdamage? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Playerdamage? (/showthread.php?tid=317254)



Playerdamage? - Chrillzen - 10.02.2012

Is it possible to change how much damage you do when you fight with your fists?


Re: Playerdamage? - Twinki1993 - 10.02.2012

Well it is possible. Like you do for the deagle and stuff. Just the id of the fists are 0 I think. It's the same thing like the deagles and such. Just ID of the fists are 0.


Re: Playerdamage? - Smacky - 10.02.2012

Guess it is, you must use OnPlayerTakeDamage function.


Re: Playerdamage? - Azzeto - 10.02.2012

You can use OnPlayerTakeDamage for sure,

Example JUST AN EXAMPLE TO TAKE HEALTH WITHOUT TAKING ARMOR

pawn Code:
new Float:health = GetPlayerHealth(playerid);
if(GetPlayerWeaponID(playerid)==0)
{
    SetPlayerHealth(playerid,health-20);
}