Preventing damage through weapon config
#1

I want to make it so that when the players health is
PHP код:
< = 
no MORE damage can be done to him. He goes into:
PHP код:
Character[playerid][BrutalM] = 1
Which function should I use? I want to make it possible that if the players health is 6, and a deagle does 35 damage that it will only do the 1 damage it should. So, his health will only go to 5 and not 0 where the OnPlayerDeath function will go through.

Any ideas? I don't want code, just an explanation or examples would help! Thanks.
Reply
#2

You should totally go for server sided health, where you can attempt to keep the client health value constant, but have an additional value for their health display. This method prevents getting killed when there should be a cap at low health.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)