Adjusting Player Take Damage
#1

Hi everyone,

I'm trying to make a defence stat point system. System is simply, the higher defence stats you have, less damage you get. But I couldn't control the damage player took. I'm using weapon-config inc. But couldn't figure out. I used OnPlayerDamage public. But nothing happened. It's not calling when player taking damage. How can i made it up?
Reply
#2

Some things are better in weapon-config you may do, but also you can do something like that.

Code:
new Float:hp;
GetPlayerHealth(playerid, hp);
amount -= (amount/100) * 15;
SetPlayerHealth(playerid, hp - amount);
This will take only a *15 from the health.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)