13.12.2013, 14:04
pawn Код:
// on top
new pKillID[MAX_PLAYERS], pKillReason[MAX_PLAYERS];
// OnPlayerGiveDamage
pKillID[damagedid] = playerid;
pKillReason[damagedid] = weaponid;
// OnPlayerDeath
if(pKillID[playerid] != INVALID_PLAYER_ID)
{
killerid = pKillID[playerid];
reason = pKillReason[playerid];
pKillID[playerid] = INVALID_PLAYER_ID;
pKillReason[playerid] = 54;
}