Helpme! Dead Sysytem
#1

Hi, I have that.

Public Onplayerdeath

- isdeathcrp [playerid] = 1;

And when they die, it will hurt badly. To wait for a doctor to help or push / acceptdeath at the point of death.

But players injured fatally shot dead system to not spawn,and they return of point hurt badly

How to Fix Bug ? Thank You

Код:
			if (isdeathcrp[playerid] == 1)
			{
				isdeathcrp[playerid] = 2;
				SetPlayerHealth(playerid, 10);
                ApplyAnimation(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
				SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pWorld]);
				SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
				SetPlayerPos(playerid, DeadX[playerid], DeadY[playerid], DeadZ[playerid]);
		        SendClientMessage(playerid, COLOR_ALLDEPT, "¤ШідґйГСєєТґаЁзєКТЛСК");
		        SendClientMessage(playerid, COLOR_ALLDEPT, "¤ШіЎУЕС§ЁРµТВѕФБѕм /acceptdeath ЛГЧНгЛйГН LSFMD");
		        SetPVarInt(playerid, "StepsAD", 30);
			}

public OnPlayerDeath(playerid, killerid, reason)

DeadX[playerid] = X;
DeadY[playerid] = Y;
DeadZ[playerid] = Z;
isdeathcrp[playerid] = 1;
Reply
#2

Use 'bodypart' for this
Reply
#3

I do not understand.
Reply
#4

I had a similar problem to this, it might help using a small timer instead of using it in OnPlayerSpawn, that fixed it for me.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)