What happens in OnPlayerKill when someone suicides with /kill?
I ask this because this code
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
begin
inc(PlayerInfo[Killer].Level, 1);
ForceWeapon(Killer, WeaponForLevel[PlayerInfo[Killer].Level], WeaponForLevel[PlayerInfo[Killer].Level], 0);
SetScore(Killer, PlayerInfo[Killer].Level);
if LevelDecreaseOnKill then begin
if PlayerInfo[victim].Level > 1 then begin
dec(PlayerInfo[Victim].Level, 1);
ForceWeapon(Victim, WeaponForLevel[PlayerInfo[Victim].Level], WeaponForLevel[PlayerInfo[Victim].Level], 0);
SetScore(Victim, PlayerInfo[Victim].Level);
end;
end;
end;
Gives me an out of range error for OnPlayerKill when I do /kill and I have no clue why.