[Tutorial] OnPlayerTakeDamage(..)
#8

Hello Kar,

so with this smart script you can "personalize" your WeaponDamage, so I've tryed to to GetPlayerHealth, and when he take a damage from any weapons he will receive -0dmg(if they are in the same team). So, It's will don't increase players health/armour.

pawn Code:
new Float:HP;
GetPlayerHealth(playerid, HP); // We get his HP.
if(GetPlayerWeapon(issuerid)) SetPlayerHealth(playerid, HP-0);
But, I don't know if I do a mistake, I would simply simply use :
pawn Code:
SetPlayerHealth(playerid, HP);
Reply


Messages In This Thread
OnPlayerTakeDamage(..) - by Matnix - 05.09.2013, 18:34
Re: OnPlayerTakeDamage(..) - by hossa - 05.09.2013, 18:46
Re : OnPlayerTakeDamage(..) - by Matnix - 05.09.2013, 19:12
Re: OnPlayerTakeDamage(..) - by P1c4550 - 06.09.2013, 08:08
Re: OnPlayerTakeDamage(..) - by AaronKillz - 06.09.2013, 08:11
Re: OnPlayerTakeDamage(..) - by Omar55555 - 10.09.2013, 12:27
Re: OnPlayerTakeDamage(..) - by Kar - 10.09.2013, 23:02
Re : OnPlayerTakeDamage(..) - by Matnix - 10.09.2013, 23:09
Re: OnPlayerTakeDamage(..) - by DanishHaq - 10.09.2013, 23:22
Re : OnPlayerTakeDamage(..) - by Matnix - 28.09.2013, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)