09.06.2015, 15:05
Quote:
You could also use OnPlayerGiveDamage and OnPlayerTakeDamage and store if they hit the other player.
If you implement GetPlayerTargetPlayer then remember that not everything will call that like if they're using a joypad, if they're in a vehicle and also guns have target ranges which are shorter than the damage ranges which means you can kill someone with an m4 without GetPlayerTargetPlayer returning their id if they're far away enough |
Quote:
You could always check if the "killer" is actually carrying the weapon they supposedly killed with. Код:
//OnPlayerDeath if(GetPlayerWeapon(killerid) != reason) //if the weapon "killerid" has is not the weapon used to kill "playerid" { //"playerid" used a fake kill } |