Problem with OnPlayerGiveDamage
#8

Why not use OnPlayerTakeDamage?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    new Float:health, Float:armor;
    GetPlayerHealth(playerid, health);
    GetPlayerArmour(playerid, armor);

    if(playerid != INVALID_PLAYER_ID)
    {
      	if(PlayerInfo[playerid][pFreezeTime] != 0)
        {
            SetPlayerHealth(playerid, health);
            SetPlayerArmor(playerid, armor);
            return SendClientMessage(issuerid, -1, "This player is frozen, you can't shoot him.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with OnPlayerGiveDamage - by None1337 - 02.09.2017, 21:31
Re: Problem with OnPlayerGiveDamage - by Jefff - 02.09.2017, 21:54
Re: Problem with OnPlayerGiveDamage - by RedGun2015 - 03.09.2017, 00:48
Re: Problem with OnPlayerGiveDamage - by Astralis - 03.09.2017, 01:51
Re: Problem with OnPlayerGiveDamage - by None1337 - 03.09.2017, 10:53
Re: Problem with OnPlayerGiveDamage - by 10MIN - 03.09.2017, 10:57
Re: Problem with OnPlayerGiveDamage - by UberEverywhere - 03.09.2017, 11:06
Re: Problem with OnPlayerGiveDamage - by kAn3 - 03.09.2017, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)