OnPlayerTakeDamage
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_JUMP)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerVelocity(playerid, x, y, z);
        if(y > changethistoheightvalue)
        {
            new Float:health;
            GetPlayerHealth(playerid, health);
            SetPlayerHealth(playerid, health-80);
        }
    }
    return 1;
}
I tried something, not sure if in right direction, something is wrong, probably someone else can continue or fix.
Reply


Messages In This Thread
OnPlayerTakeDamage - by iHaze. - 30.03.2013, 14:10
Re: OnPlayerTakeDamage - by rhds - 30.03.2013, 14:17
Re: OnPlayerTakeDamage - by RajatPawar - 30.03.2013, 14:17
Re: OnPlayerTakeDamage - by iHaze. - 30.03.2013, 14:38
Re: OnPlayerTakeDamage - by rhds - 30.03.2013, 15:10

Forum Jump:


Users browsing this thread: 2 Guest(s)