function GM:OnNPCKilled(npcVictim, npcKiller, npcInflictor) if( npcKiller:IsValid() and npcKiller:IsVehicle() and npcKiller:GetPhysicsAttacker():IsValid() and npcKiller:GetPhysicsAttacker():IsPlayer() ) then npcKiller:GetPhysicsAttacker():AddFrags(1) elseif( npcKiller:IsPlayer() ) npcKiller:AddFrags(1) end end