Auto-crack system problem.
#10

Quote:
Originally Posted by Tee
Посмотреть сообщение
Wait i'll fix this post :S

EDIT: Ok try this:

pawn Код:
forward JustACheck(playerid);

public OnPlayerSpawn(playerid)
{
    SetTimerEx("JustACheck", 1000, true, "i", playerid);
    return 1;
}

public JustACheck(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    if(health < 30.0)
    {
        ApplyAnimation(playerid,"PED","crckdeth2",2.1,1,1,1,1,1,1);
    }
    return 1;
}
You forgot to edit PED --> CRACK...
Though, when my player gets healed, I want him to be controlable again.
pawn Код:
public HealthCheck(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    if (health > 30.0)
    TogglePlayerControllable(playerid, 1);
    return 1;
}
But it's resetting his animations always...
Reply


Messages In This Thread
Auto-crack system problem. - by Darnell - 12.08.2011, 07:09
Re: Auto-crack system problem. - by PrawkC - 12.08.2011, 07:13
Re: Auto-crack system problem. - by Darnell - 12.08.2011, 07:28
Re: Auto-crack system problem. - by PrawkC - 12.08.2011, 07:30
Re: Auto-crack system problem. - by Darnell - 12.08.2011, 07:35
Re: Auto-crack system problem. - by Tee - 12.08.2011, 07:44
Re: Auto-crack system problem. - by Darnell - 12.08.2011, 07:58
Re: Auto-crack system problem. - by Darnell - 12.08.2011, 08:44
Re: Auto-crack system problem. - by Tee - 12.08.2011, 09:07
Re: Auto-crack system problem. - by Darnell - 12.08.2011, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)