05.03.2012, 18:06
I have make so you fall under 50hp but nothing happends when you get under 50hp thanks in advance.
callback
callback
pawn Код:
}
public DoDeath(playerid)
{
new Float:phealth;
GetPlayerHealth(playerid,phealth);
if(phealth < 50)
SendClientMessage(playerid, COLOR_LIGHTRED, "You were brutally wounded, you can either wait for help or accept your death (/acceptdeath)");
Wounded[playerid] = 1;
TogglePlayerControllable(playerid, 0);
PlayerInfo[playerid][pDeath] = 0;
SetPlayerPos(playerid, DeathDest[playerid][0],DeathDest[playerid][1],DeathDest[playerid][2]);
SetPlayerVirtualWorld(playerid,DeathWorld[playerid]);
SetPlayerHealth(playerid, 5);
SetPlayerInterior(playerid,GetPlayerInterior(playerid));
ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 1, 1, 1, 1, 1);
return 1;
}