19.06.2017, 15:18
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 :
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: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);
How could I make the player is on the ground to not taking damage in the injury system?
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?