pawn Code:
GivePlayerDamage(issuerid, targetid, Float:Amount);
This function would be usefull used with "OnPlayerTakeDamage" for ammo systems eg, armour piercing. So that OnPlayerDeath gets called correctly when a player dies. For example if you take extra health when a player is hit (SetPlayerHealth) and the player dies OnPlayerDeath gets called with INVALID_PLAYER_ID as killerid. Not good for stats ect. There are workarounds but a native function would be better.
EG,
pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(gHasHollowPoint[issuerid])
{
GivePlayerDamage(issuerid, playerid, 10.0);
//if player dies OnPlayerDeath gets called correct
}
return 1;
}