04.03.2015, 05:26
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
public OnPlayerDeath(playerid, killerid, reason)
DeadX[playerid] = X;
DeadY[playerid] = Y;
DeadZ[playerid] = Z;
isdeathcrp[playerid] = 1;
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;