[Ajuda] Ao beber cafй, a vida aumenta mesmo estando 100
#2

pawn Код:
// Corrigindo
new Float:health;
GetPlayerHealth(playerid, health)
if(health < 100)
{
    if(PlayerInfo[playerid][pAlcoholPerk] > 0) { PlayerDrunk[playerid] += 1; new hp = 2 *   PlayerInfo[playerid][pAlcoholPerk]; hp += 15; SetPlayerHealth(playerid, health + hp); }
    else { SetPlayerHealth(playerid, health + 15.0); }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)