How to take less damage using OnPlayerTakeDamage?
#2

try this
Код:
if ( issuerid != INVALID_PLAYER_ID || issuerid == INVALID_PLAYER_ID )
    {
        //xxxxxxxxxxxxxxxxxxxxxxxxxx
        {
            if ( amount > 2 )
            {
                new Float:playerHp;
                GetPlayerHealth( playerid, playerHp );
                SetPlayerHealth( playerid, playerHp - ( amount*15/100 ) ); // give back 15% of the health..
            }
        }
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)