0 Members and 2 Guests are viewing this topic.
constsavetype = 2; //1 = HWID, 2 = NamePublicDis = 2; //1 = Public Display Stats 2 = Private Display Stats
function OnPlayerDamageEx(Victim,Killer: Byte; Damage: Integer; Weapon: Byte): Integer;begin if (GetPlayerStat(killer, 'Active') = true) and not (killer = Victim) and not (GetPlayerStat(killer,'team') = GetPlayerStat(Victim,'team')) then begin case (Weapon) of 0: PlayerStats[killer].pistolH := inttostr(strtoint(PlayerStats[killer].pistolH) + 1); 1: PlayerStats[killer].deagleHit := inttostr(strtoint(PlayerStats[killer].deagleHit) + 1); 2: PlayerStats[killer].hkH := inttostr(strtoint(PlayerStats[killer].hkH) + 1); 3: PlayerStats[killer].akH := inttostr(strtoint(PlayerStats[killer].akH) + 1); 4: PlayerStats[killer].augH := inttostr(strtoint(PlayerStats[killer].augH) + 1); 5: PlayerStats[killer].spasH := inttostr(strtoint(PlayerStats[killer].spasH) + 1); 6: PlayerStats[killer].rugerH := inttostr(strtoint(PlayerStats[killer].rugerH) + 1); 8: PlayerStats[killer].barrettH := inttostr(strtoint(PlayerStats[killer].barrettH) + 1); 9: PlayerStats[killer].minimiH := inttostr(strtoint(PlayerStats[killer].minimiH) + 1); 10: PlayerStats[killer].minigunH := inttostr(strtoint(PlayerStats[killer].minigunH) + 1); 14: PlayerStats[killer].knifeH := inttostr(strtoint(PlayerStats[killer].knifeH) + 1); 15: PlayerStats[killer].sawH := inttostr(strtoint(PlayerStats[killer].sawH) + 1); end; if (Weapon = 16) and (Damage >= 25) then PlayerStats[killer].lawH := inttostr(strtoint(PlayerStats[killer].lawH) + 1); if (Weapon = 7) and (Damage >= 40) then PlayerStats[killer].m79H := inttostr(strtoint(PlayerStats[killer].m79H) + 1); end; Result:=damage;end;
|| || \||/ \/