Posts: 30
Threads: 16
Joined: Jun 2017
If one player is < 45 hp and I shoot him with a deagle he is respawning but I wants to put him in injured like another weapons like M4 or AK-47. Why he is respawning? It's because damage deagle from GTA Singeplayer?
https://www.youtube.com/watch?v=ZZ8T...ature=*********
Posts: 493
Threads: 82
Joined: Oct 2016
Reputation:
0
It's because the damage is too big, just get the weaponconfig include and get the players health then do
if(amount > PlayerHealth)
setplayerhealth(playerid, 45);
and continue from there
Posts: 190
Threads: 28
Joined: Jun 2017
Quote:
Originally Posted by aoky
It's because the damage is too big, just get the weaponconfig include and get the players health then do
if(amount > PlayerHealth)
setplayerhealth(playerid, 45);
and continue from there
|
It will be not good to set the PlayerHealth
make it like that
Код:
SetPlayerHealth(playerid, GetPlayerHealth(playerid)-45);
Correct me if i'm wrong