OnPlayerTakeDamage & OnPlayerGiveDamage not being called.
#6

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
I viewed that include, the problem is because it's not hooked. Emmet would have probably forgotten to because he codes mostly at late nights.
FIX:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if (g_bCallbacks & CB_OnPlayerBurning && weaponid == 37)
    {
        if (!(g_cbPlayers[playerid][e_cbFlags] & e_cbBurning))
        {
            g_cbPlayers[playerid][e_cbFlags] |= e_cbBurning;
            CallLocalFunction("OnPlayerBurning", "dd", playerid, 1);
        }
        g_cbPlayers[playerid][e_cbLastBurn] = GetTickCount();
    }
    #if defined CB_OnPlayerTakeDamage
        return CB_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart);
    #else
        return 1;
    #endif
}
Thanks!


off-topic: didn't he quit samp? o.o
Reply


Messages In This Thread
OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Kyance - 31.12.2014, 10:44
Re: OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Ryz - 31.12.2014, 10:59
Re: OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Lordzy - 31.12.2014, 11:50
Re: OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Kyance - 31.12.2014, 12:13
Re: OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Lordzy - 31.12.2014, 12:53
Re: OnPlayerTakeDamage & OnPlayerGiveDamage not being called. - by Kyance - 31.12.2014, 14:06

Forum Jump:


Users browsing this thread: 2 Guest(s)