Injured system
#1

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=*********
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)