11.03.2012, 22:25
Hello everyone I have this script
But when I take a damage my HP is reset back to 100. Why?
pawn Код:
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..
}
}
}