[Include] [BETA] OnPlayerGive/TakeDamage Health/Armour loss reporting
#10

- Players lose 3 health on spawn for some reason. SA:MP bug probably. doubtful about this
- If a player has 5 health and are shot with a gun that does 10 damage, the healthloss is reported as 10, not 5 (as it should be IMO). Not sure how to go about fixing this, or if I need to. easy, if there health goes less than 0, then take it away the negative values, E.G if he has 5 health and it does 10 damage, then remove the -5 and make it 0 if you get what i mean
- If a player dies instantly (such as suicide/explosions) their armour may be 'remembered' as being 100, so next time they take damage it will report an armour loss of 100. I'm not sure about this one as I forgot to test it (PC is off now). if(newstate == PLAYER_STATE_WASTED) armour = 0;
- Setting armour in a filterscript may fuck things up probably hooks?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)