Helpme! Dead Sysytem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Helpme! Dead Sysytem (
/showthread.php?tid=566181)
Helpme! Dead Sysytem -
nooion345 - 04.03.2015
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;
Re: Helpme! Dead Sysytem -
ATGOggy - 04.03.2015
Use 'bodypart' for this
Re: Helpme! Dead Sysytem -
nooion345 - 04.03.2015
I do not understand.
Re: Helpme! Dead Sysytem -
CalvinC - 04.03.2015
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.