Jump to content
  • 0

Problema OnPlayerGiveDamage


Question

Posted

Salut, am o problema, la OnPlayerGiveDamage, am aceasta functie, practic mesajul este trimis, insa jucatorul tot i se ia HP

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
    if(damagedid != INVALID_PLAYER_ID)
    {
      	if(PlayerInfo[damagedid][pFreezeTime] != 0)
        {
            SendClientMessage(playerid, -1, "This player is frozen, you can't shoot him.");
            amount = 0;
            return 0;
        }
    }
    return 1;
}

Cum as putea rezolva sa nu ia ia HP?

2 answers to this question

Recommended Posts

  • 0
Posted

Pai, trebuie sa te uiti si la onplayertakedamage , in momentul in care ala trage , persoana care e cu freeze sa i se seteze hp la maxim , sau cum vrei tu 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.