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


Messages In This Thread
Helpme! Dead Sysytem - by nooion345 - 04.03.2015, 05:26
Re: Helpme! Dead Sysytem - by ATGOggy - 04.03.2015, 06:10
Re: Helpme! Dead Sysytem - by nooion345 - 04.03.2015, 08:34
Re: Helpme! Dead Sysytem - by CalvinC - 04.03.2015, 08:47

Forum Jump:


Users browsing this thread: 2 Guest(s)