20.04.2012, 16:45
I want so you fall down when you got under 10hp, if someone is willing to help me, thanks in advance
here is my code
here is my code
pawn Код:
public DoDeath(playerid)
{
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);
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, 10);
return 1;
}