13.05.2012, 16:10
I makeing a injured system but he wont fall down under 10hp
pawn Код:
}
public DoDeath(playerid)
{
new Float:VBLife;
GetPlayerHealth(playerid,VBLife);
if(VBLife < 10)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You were brutally wounded, you can either wait for help or accept your death (/accept death)");
Wounded[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerPos(playerid, DeathDest[playerid][0],DeathDest[playerid][1],DeathDest[playerid][2]);
SetPlayerVirtualWorld(playerid,DeathWorld[playerid]);
SetPlayerInterior(playerid,GetPlayerInterior(playerid));
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
//SetPlayerHealth(playerid, 1);
}
return 1;