04.11.2009, 20:02
I made this once I was bored. You can't get -20 health I think...
On the top:
At OnPlayerDeath
On the top:
pawn Код:
forward IsDead(playerid);
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float: sfx;
new Float: sfy;
new Float: sfz;
GetPlayerPos(playerid, sfx, sfy, sfz);
SetPlayerPos(playerid, sfx, sfy, sfz);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetTimer("IsDead",60000, true);
return 1;
}
public IsDead(playerid)
{
TogglePlayerControllable(playerid, 1);
SetPlayerHealth(playerid, 100);
SpawnPlayer(playerid);
SendClientMessage(playerid, COLOR_PURPLE, "** You wake up slowly");
return 1;
}

