OnPlayerTakeDamage bug
#1

I got headshot system

pawn Код:
if((WEAPON_RIFLE <= GetPlayerWeapon(issuerid) <= WEAPON_SNIPER) && bodypart == 9)
{
    SetPlayerHealth(playerid, 0.0);
    return 0;
}
9 means head and if we connect everthing is working but after +/- 15 min if i shoot on his head player is killed with INVALID_KILLER_ID not my id reason 255, after another few minutes player have god mode so OnPlayerTakeDamage is not called? or GetPlayerWeapon or bodypart? its old samp bug, if i remeber its from 0.3x? for the first bug samp is not holding killerid if it looks like suicide.
Please fix this bug because why the sniper rifle is available when does not work
Reply


Messages In This Thread
OnPlayerTakeDamage bug - by Jefff - 12.04.2014, 21:22
Re: OnPlayerTakeDamage bug - by Kar - 12.04.2014, 22:32
Re: OnPlayerTakeDamage bug - by PinEvil - 13.04.2014, 03:57
Re: OnPlayerTakeDamage bug - by Jefff - 13.04.2014, 23:04
Re: OnPlayerTakeDamage bug - by Kar - 13.04.2014, 23:13
Re: OnPlayerTakeDamage bug - by Jefff - 15.04.2014, 00:11
Re: OnPlayerTakeDamage bug - by Kar - 15.04.2014, 01:11
Re: OnPlayerTakeDamage bug - by cessil - 15.04.2014, 03:00
Re: OnPlayerTakeDamage bug - by Lordzy - 15.04.2014, 03:00
Re: OnPlayerTakeDamage bug - by Jefff - 15.04.2014, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)