HELP automatic CRACK
#2

I made this once I was bored. You can't get -20 health I think...

On the top:
pawn Код:
forward IsDead(playerid);
At OnPlayerDeath
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;
}

Reply


Messages In This Thread
HELP automatic CRACK - by Jo_123 - 04.11.2009, 19:45
Re: HELP automatic CRACK - by Benne - 04.11.2009, 20:02
Re: HELP automatic CRACK - by mirkoiz - 04.11.2009, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)