is it possible to add health not set health?
#5

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
pawn Код:
new Float:Health = GetPlayerHealth ( playerid , Health ) ;
if ( Health < 100 )
{
    SetPlayerHealth ( playerid , Health+50 ) ;
    return 1;
}
1) GetPlayerHealth doesn't work like that and 2) if the player has 99 health the evaluation will still hold true and they will end up with 149 health.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)