Death System like LS:RP
#1

hello boyz, i want to make a copy of death system from LS:RP like this:

One player have a weapon(like AK-47) and he shoots after somebody, that player who is attacked if he has health under 35( health < 35) he goes to Injury System like he fell at the ground with ApplyAnimationEx(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 1, 1, 1, 0);
And one 3dtext label is created above his head like this :
Code:
format(stringdamage, sizeof(stringdamage), "(( Has been injured %d times, /damages %d for more information. ))", CountDamages(playerid), playerid);
strcat(stringdamage, stringdamage2);
PlayerInfo[playerid][pInjuriesText] = CreateDynamic3DTextLabel(stringdamage, COLOR_ERROR, x, y, z, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 20.0);
Now it's okay, but if i want to shoot again in him, i don't want to take damage from the player is on the ground, like if i shoot with AK-47 10-20 bullets, he doesn't take damage and he goes to Death System and a 3DTextLabel is now "(( THE PLAYER IS DEAD )) ".


How could I make the player is on the ground to not taking damage in the injury system?
Thank you a lot boys, i make on OnThePlayerTakeDamage this:

Code:
if(GetPVarInt(playerid, "Dead") == 6)
{
     SetPlayerHealth(playerid, health+25);
     DestroyDynamic3DTextLabel(PlayerInfo[playerid][pInjuriesText]);
     GetPlayerPos(playerid, x, y, z);
     PlayerInfo[playerid][pInjuriesText] = CreateDynamic3DTextLabel("(( THIS PLAYER IS DEAD ))", COLOR_ERROR, x, y, z, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 20.0);
}
BUT THE PLAYER IS TAKING DAMAGE, WHY?
Reply


Messages In This Thread
Death System like LS:RP - by valelele - 19.06.2017, 15:18
Re: Death System like LS:RP - by Dice_ - 19.06.2017, 16:06
Re: Death System like LS:RP - by valelele - 19.06.2017, 16:35
Re: Death System like LS:RP - by Puppy - 19.06.2017, 16:56
Re: Death System like LS:RP - by valelele - 19.06.2017, 17:04
Re: Death System like LS:RP - by DRIFT_HUNTER - 19.06.2017, 17:44
Re: Death System like LS:RP - by JasonRiggs - 19.06.2017, 18:03
Re: Death System like LS:RP - by valelele - 19.06.2017, 18:05
Re: Death System like LS:RP - by JasonRiggs - 19.06.2017, 18:09
Re: Death System like LS:RP - by GoldenLion - 19.06.2017, 18:55
Re: Death System like LS:RP - by valelele - 19.06.2017, 19:15

Forum Jump:


Users browsing this thread: 2 Guest(s)